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.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/audio_decoder.h') diff --git a/src/lib/audio_decoder.h b/src/lib/audio_decoder.h index 69655cceb..d422503a7 100644 --- a/src/lib/audio_decoder.h +++ b/src/lib/audio_decoder.h @@ -60,7 +60,9 @@ private: void silence (int milliseconds); boost::shared_ptr _content; - /** Frame after the last one that was emitted from Data for each AudioStream */ + /** Frame after the last one that was emitted from Data (i.e. at the resampled rate, if applicable) + * for each AudioStream. + */ std::map _positions; std::map > _resamplers; -- cgit v1.2.3