diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-10-14 21:23:36 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-10-14 21:23:36 +0200 |
| commit | 9a3df0a97b7962c00726447a75599e34c632cb2b (patch) | |
| tree | 84138ebad937483304ad8b785d3cbe18e39606a7 | |
| parent | 3c205603ded9c1c45048a59a25880a698c4a0e49 (diff) | |
Clear out _next_time when seeking, so out-of-date values don't
hang around. Part of the fix for #1857.
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 04c97ed3b..79fce3027 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -416,6 +416,10 @@ DCPOMATIC_ENABLE_WARNINGS } _have_current_subtitle = false; + + BOOST_FOREACH (optional<ContentTime>& i, _next_time) { + i = optional<ContentTime>(); + } } void |
