From fa4d2529d63bcfa7cf7c516b7227e20a1b6dec7e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 21 May 2017 19:48:14 +0100 Subject: Do resampling in AudioDecoder rather than Player. This fixes the problem where the decoder's position would not take into account that all samples pushed into the resampler do not always immediately come out. This would result in Player thinking that there would be gaps when there are not. --- src/lib/ffmpeg_decoder.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/ffmpeg_decoder.cc') diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 1c886284b..baec57f3d 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -113,6 +113,7 @@ FFmpegDecoder::flush () if (audio) { decode_audio_packet (); + audio->flush (); } } -- cgit v1.2.3