diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-12-14 00:33:08 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-12-14 00:33:08 +0100 |
| commit | a3640be5cb04a2bda6726eb34c628727b3c11278 (patch) | |
| tree | fc738bfd570d10ec8fb18e05af7474f692f437b0 | |
| parent | 71ccd8535d02ef443c46c93af60a56c1d9ee3530 (diff) | |
Reset _flush_state on seek().
Otherwise we do the wrong thing at the end of a file on the second
run-through.
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 2 |
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. */ |
