projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71ccd85
)
Reset _flush_state on seek().
author
Carl Hetherington
<cth@carlh.net>
Fri, 13 Dec 2024 23:33:08 +0000
(
00:33
+0100)
committer
Carl 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
patch
|
blob
|
history
diff --git
a/src/lib/ffmpeg_decoder.cc
b/src/lib/ffmpeg_decoder.cc
index a8bfd2a386618d7fe571cd544817342c18916b32..81ca14f7f2fbfad85b2f1fb5948ab44ca25be58b 100644
(file)
--- 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.
*/