From c8a036eb727ceddc64a0304d781c916eb952c001 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 8 Jun 2022 09:58:16 +0200 Subject: 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/string_text_file_decoder.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/string_text_file_decoder.h') diff --git a/src/lib/string_text_file_decoder.h b/src/lib/string_text_file_decoder.h index 8fbf09608..c58021acb 100644 --- a/src/lib/string_text_file_decoder.h +++ b/src/lib/string_text_file_decoder.h @@ -36,6 +36,7 @@ public: private: dcpomatic::ContentTimePeriod content_time_period (sub::Subtitle s) const; + void update_position(); size_t _next; }; -- cgit v1.2.3