Fix missing subtitles in some cases.
authorCarl Hetherington <cth@carlh.net>
Fri, 26 Jun 2015 21:02:00 +0000 (22:02 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 26 Jun 2015 21:02:00 +0000 (22:02 +0100)
commitc8ff422a42eac30517a7acde57ab84e55449f4e4
tree6715a334126cca5558fb6158f0e9082cdb0afb5b
parentaddd3f846ed924710d7a416eedcda87653b75968
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.
src/lib/content_subtitle.cc [deleted file]
src/lib/content_subtitle.h
src/lib/dcp_subtitle_decoder.cc
src/lib/dcp_subtitle_decoder.h
src/lib/subrip_decoder.cc
src/lib/subrip_decoder.h
src/lib/subtitle_decoder.cc
src/lib/subtitle_decoder.h
src/lib/wscript
src/wx/about_dialog.cc
test/srt_subtitle_test.cc