Fix missing subtitle in some cases.
authorCarl Hetherington <cth@carlh.net>
Mon, 15 May 2017 14:54:52 +0000 (15:54 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 15 May 2017 14:54:52 +0000 (15:54 +0100)
commit4bfeba59854f5097c84b3c58f61b00ea36acae3f
tree2fd35c2da3d65d405cf6860eb2f2121ef3ff1afa
parent78f1a72b5388983dd19d4b243399922a1b6ef954
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
src/lib/player.cc
src/lib/subtitle_decoder.cc
src/lib/subtitle_decoder.h