From 7147957ea5485a70580135cf32c43a05ed97a7f2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 16 Feb 2018 21:54:01 +0000 Subject: AudioDecoder::_positions is at the resampled rate, if applicable; fix its initial setup. Fixes problems when seeking deep into resampled content; before this commit the audio time stamps got out of whack sufficiently that the butler would fill with video before any audio made it past the range checks. --- src/lib/audio_decoder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/audio_decoder.cc') diff --git a/src/lib/audio_decoder.cc b/src/lib/audio_decoder.cc index 4bd6535d8..c0f00780a 100644 --- a/src/lib/audio_decoder.cc +++ b/src/lib/audio_decoder.cc @@ -66,7 +66,7 @@ AudioDecoder::emit (AudioStreamPtr stream, shared_ptr data, silence (_content->delay ()); } time += ContentTime::from_seconds (_content->delay() / 1000.0); - _positions[stream] = time.frames_round (stream->frame_rate ()); + _positions[stream] = time.frames_round (_content->resampled_frame_rate ()); } shared_ptr resampler; -- cgit v1.2.3