diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-05-15 15:54:52 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-05-15 15:54:52 +0100 |
| commit | 4bfeba59854f5097c84b3c58f61b00ea36acae3f (patch) | |
| tree | 2fd35c2da3d65d405cf6860eb2f2121ef3ff1afa /src/lib/decoder.cc | |
| parent | 78f1a72b5388983dd19d4b243399922a1b6ef954 (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.cc | 3 |
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 (); + } } |
