From a3640be5cb04a2bda6726eb34c628727b3c11278 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 14 Dec 2024 00:33:08 +0100 Subject: Reset _flush_state on seek(). Otherwise we do the wrong thing at the end of a file on the second run-through. --- src/lib/ffmpeg_decoder.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib/ffmpeg_decoder.cc') diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index a8bfd2a38..81ca14f7f 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -401,6 +401,8 @@ FFmpegDecoder::seek (ContentTime time, bool accurate) { Decoder::seek (time, accurate); + _flush_state = FlushState::CODECS; + /* If we are doing an `accurate' seek, we need to use pre-roll, as we don't really know what the seek will give us. */ -- cgit v1.2.3