X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fsubtitle_decoder.cc;h=e5cadb7b48b4e513c3b11a7ad47babc10ecda689;hb=8353a009aae1a604251c0160193c39741c2fa27c;hp=49c04501eb26903f317bf706bf840a95de37a01c;hpb=d0bca7d33b8101cd87f78d5a76b2512dea3988f8;p=dcpomatic.git diff --git a/src/lib/subtitle_decoder.cc b/src/lib/subtitle_decoder.cc index 49c04501e..e5cadb7b4 100644 --- a/src/lib/subtitle_decoder.cc +++ b/src/lib/subtitle_decoder.cc @@ -22,6 +22,7 @@ using std::list; using boost::shared_ptr; +using boost::optional; SubtitleDecoder::SubtitleDecoder (shared_ptr f) : Decoder (f) @@ -34,13 +35,13 @@ SubtitleDecoder::SubtitleDecoder (shared_ptr f) * Image may be 0 to say that there is no current subtitle. */ void -SubtitleDecoder::image_subtitle (shared_ptr image, dcpomatic::Rect rect, Time from, Time to) +SubtitleDecoder::image_subtitle (shared_ptr image, dcpomatic::Rect rect, ContentTime from, ContentTime to) { - ImageSubtitle (image, rect, from, to); + _pending.push_back (shared_ptr (new DecodedImageSubtitle (image, rect, from, to))); } void SubtitleDecoder::text_subtitle (list s) { - TextSubtitle (s); + _pending.push_back (shared_ptr (new DecodedTextSubtitle (s))); }