summaryrefslogtreecommitdiff
path: root/src/lib/decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-05-15 15:54:52 +0100
committerCarl Hetherington <cth@carlh.net>2017-05-15 15:54:52 +0100
commit4bfeba59854f5097c84b3c58f61b00ea36acae3f (patch)
tree2fd35c2da3d65d405cf6860eb2f2121ef3ff1afa /src/lib/decoder.cc
parent78f1a72b5388983dd19d4b243399922a1b6ef954 (diff)
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).
Diffstat (limited to 'src/lib/decoder.cc')
-rw-r--r--src/lib/decoder.cc3
1 files changed, 3 insertions, 0 deletions
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 ();
+ }
}