diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-26 22:02:00 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-26 22:02:00 +0100 |
| commit | c8ff422a42eac30517a7acde57ab84e55449f4e4 (patch) | |
| tree | 6715a334126cca5558fb6158f0e9082cdb0afb5b /src/lib/subtitle_decoder.h | |
| parent | addd3f846ed924710d7a416eedcda87653b75968 (diff) | |
Fix missing subtitles in some cases.
We were passing subtitles back from decoders to SubtitleDecoder
using dcp::SubtitleStrings and relying on their storage of time
to know when the subtitles were. These times are quantised (by
the use of dcp::SubtitleString) and then compared with unquantised
times (kept as ContentTime) in the main checking loop in
SubtitleDecoder::get().
Fix this by storing periods as ContentTimePeriod as well as
in the dcp::SubtitleStrings.
Diffstat (limited to 'src/lib/subtitle_decoder.h')
| -rw-r--r-- | src/lib/subtitle_decoder.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/subtitle_decoder.h b/src/lib/subtitle_decoder.h index c958419c7..5f11e27e7 100644 --- a/src/lib/subtitle_decoder.h +++ b/src/lib/subtitle_decoder.h @@ -42,7 +42,7 @@ protected: void seek (ContentTime, bool); void image_subtitle (ContentTimePeriod period, boost::shared_ptr<Image>, dcpomatic::Rect<double>); - void text_subtitle (std::list<dcp::SubtitleString>); + void text_subtitle (ContentTimePeriod period, std::list<dcp::SubtitleString>); std::list<ContentImageSubtitle> _decoded_image_subtitles; std::list<ContentTextSubtitle> _decoded_text_subtitles; |
