From 4bfeba59854f5097c84b3c58f61b00ea36acae3f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 15 May 2017 15:54:52 +0100 Subject: Fix missing subtitle in some cases. With this timeline: -------> t SUB1 SUB2 X We might seek to X, then pass(). Before this change, SUB1 would have been emitted by the call to the subtitle decoder, then we'd have emitted some black for X. This would lose SUB2. Now we keep pass()ing and don't emit X until it's the earliest thing (in the same way that the main decision of what to pass() works). --- src/lib/decoder.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib/decoder.cc') diff --git a/src/lib/decoder.cc b/src/lib/decoder.cc index 1b281f718..1281897e0 100644 --- a/src/lib/decoder.cc +++ b/src/lib/decoder.cc @@ -55,4 +55,7 @@ Decoder::seek (ContentTime, bool) if (audio) { audio->seek (); } + if (subtitle) { + subtitle->seek (); + } } -- cgit v1.2.3