From 46064e5c8ae074b1328f8dab541322b6fb091275 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 14 Oct 2020 21:23:36 +0200 Subject: [PATCH] Clear out _next_time when seeking, so out-of-date values don't hang around. Part of the fix for #1857. Backported-from-commit: 9a3df0a97b7962c00726447a75599e34c632cb2b Backported-from-branch: v2.15.x --- 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 bb852d9d8..f5af0628e 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -399,6 +399,10 @@ FFmpegDecoder::seek (ContentTime time, bool accurate) } _have_current_subtitle = false; + + BOOST_FOREACH (optional& i, _next_time) { + i = optional(); + } } void -- 2.30.2