From 9a3df0a97b7962c00726447a75599e34c632cb2b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 14 Oct 2020 21:23:36 +0200 Subject: [PATCH 1/1] Clear out _next_time when seeking, so out-of-date values don't hang around. Part of the fix for #1857. --- src/lib/ffmpeg_decoder.cc | 4 ++++ 1 file changed, 4 insertions(+) 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& i, _next_time) { + i = optional(); + } } void -- 2.30.2