Clear out _next_time when seeking, so out-of-date values don't
[dcpomatic.git] / src / lib / ffmpeg_decoder.cc
index bb852d9d849833a074841c149abac0bcc92a53ee..f5af0628e213f031f845d728193c97da55943138 100644 (file)
@@ -399,6 +399,10 @@ FFmpegDecoder::seek (ContentTime time, bool accurate)
        }
 
        _have_current_subtitle = false;
        }
 
        _have_current_subtitle = false;
+
+       BOOST_FOREACH (optional<ContentTime>& i, _next_time) {
+               i = optional<ContentTime>();
+       }
 }
 
 void
 }
 
 void