summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-12-14 00:33:08 +0100
committerCarl Hetherington <cth@carlh.net>2024-12-14 00:33:08 +0100
commita3640be5cb04a2bda6726eb34c628727b3c11278 (patch)
treefc738bfd570d10ec8fb18e05af7474f692f437b0 /src/lib/ffmpeg_decoder.cc
parent71ccd8535d02ef443c46c93af60a56c1d9ee3530 (diff)
Reset _flush_state on seek().
Otherwise we do the wrong thing at the end of a file on the second run-through.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
-rw-r--r--src/lib/ffmpeg_decoder.cc2
1 files changed, 2 insertions, 0 deletions
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.
*/