Set up TextDecoder position based on the time that the next thing will v2.16.14
authorCarl Hetherington <cth@carlh.net>
Wed, 8 Jun 2022 07:58:16 +0000 (09:58 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 12 Jun 2022 13:40:33 +0000 (15:40 +0200)
commitc8a036eb727ceddc64a0304d781c916eb952c001
tree86154aac21fd268af47bead23d0077c36d9e5f72
parent922dc3605c29bd742a18b02fbe1faae5739b70df
Set up TextDecoder position based on the time that the next thing will
be emitted, instead of the time that the last thing was (#2268).

This is to avoid problems with the example shown in the test, where
just because a subtitle in source A comes before a subtitle in source B,
source A is pass()ed next and may then emit a subtitle which should
be after the next one in B.
src/lib/dcp_decoder.cc
src/lib/dcp_subtitle_decoder.cc
src/lib/dcp_subtitle_decoder.h
src/lib/ffmpeg_decoder.cc
src/lib/string_text_file_decoder.cc
src/lib/string_text_file_decoder.h
src/lib/text_decoder.cc
src/lib/text_decoder.h
test/player_test.cc