diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-06-08 09:58:16 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-06-12 15:40:33 +0200 |
| commit | c8a036eb727ceddc64a0304d781c916eb952c001 (patch) | |
| tree | 86154aac21fd268af47bead23d0077c36d9e5f72 /src/lib/string_text_file_decoder.h | |
| parent | 922dc3605c29bd742a18b02fbe1faae5739b70df (diff) | |
Set up TextDecoder position based on the time that the next thing willv2.16.14
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.
Diffstat (limited to 'src/lib/string_text_file_decoder.h')
| -rw-r--r-- | src/lib/string_text_file_decoder.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; }; |
