Clear out _next_time when seeking, so out-of-date values don't
authorCarl Hetherington <cth@carlh.net>
Wed, 14 Oct 2020 19:23:36 +0000 (21:23 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 14 Oct 2020 19:23:36 +0000 (21:23 +0200)
hang around.  Part of the fix for #1857.

src/lib/ffmpeg_decoder.cc

index 04c97ed3ba4d6b98cb87b706ec7ae47dea44ca6d..79fce30274b973ae4aa33a9504db21b798dd9e6e 100644 (file)
@@ -416,6 +416,10 @@ DCPOMATIC_ENABLE_WARNINGS
        }
 
        _have_current_subtitle = false;
+
+       BOOST_FOREACH (optional<ContentTime>& i, _next_time) {
+               i = optional<ContentTime>();
+       }
 }
 
 void