X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Ftext_caption_file_decoder.cc;h=65de6a562a114255b5b17bb50d4ffce534da24e2;hb=cbd4450197a083bf58bda510e626f73ba583cb66;hp=46217e49b550b2a4421afab0febc21449081e945;hpb=27b83475435dda4e84a90cf59a52f150905c4ab1;p=dcpomatic.git diff --git a/src/lib/text_caption_file_decoder.cc b/src/lib/text_caption_file_decoder.cc index 46217e49b..65de6a562 100644 --- a/src/lib/text_caption_file_decoder.cc +++ b/src/lib/text_caption_file_decoder.cc @@ -43,7 +43,7 @@ TextCaptionFileDecoder::TextCaptionFileDecoder (shared_ptrcaption, log, first)); + caption.push_back (shared_ptr (new CaptionDecoder (this, content->only_caption(), log, first))); } void @@ -73,7 +73,7 @@ TextCaptionFileDecoder::pass () } ContentTimePeriod const p = content_time_period (_subtitles[_next]); - caption->emit_plain (p, _subtitles[_next]); + only_caption()->emit_plain (p, _subtitles[_next]); ++_next; return false;