Reset _flush_state on seek().
authorCarl Hetherington <cth@carlh.net>
Fri, 13 Dec 2024 23:33:08 +0000 (00:33 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 13 Dec 2024 23:33:08 +0000 (00:33 +0100)
Otherwise we do the wrong thing at the end of a file on the second
run-through.

src/lib/ffmpeg_decoder.cc

index a8bfd2a386618d7fe571cd544817342c18916b32..81ca14f7f2fbfad85b2f1fb5948ab44ca25be58b 100644 (file)
@@ -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.
        */