X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fdcp_subtitle_decoder.cc;h=6c95b8b1fa4aadcc99396e51d3e09102d7739104;hp=07e879ddfad8ac0d685980bba67c95cc29783643;hb=84012cdd64f451891febd36154b7226ea21a899b;hpb=254b3044d72de6b033d7c584f5abd2b9aa70aad5 diff --git a/src/lib/dcp_subtitle_decoder.cc b/src/lib/dcp_subtitle_decoder.cc index 07e879ddf..6c95b8b1f 100644 --- a/src/lib/dcp_subtitle_decoder.cc +++ b/src/lib/dcp_subtitle_decoder.cc @@ -29,7 +29,8 @@ using boost::shared_ptr; using boost::dynamic_pointer_cast; using boost::bind; -DCPSubtitleDecoder::DCPSubtitleDecoder (shared_ptr content) +DCPSubtitleDecoder::DCPSubtitleDecoder (shared_ptr film, shared_ptr content) + : Decoder (film) { shared_ptr c (load (content->path (0))); _subtitles = c->subtitles (); @@ -43,9 +44,9 @@ DCPSubtitleDecoder::DCPSubtitleDecoder (shared_ptr con } void -DCPSubtitleDecoder::seek (shared_ptr film, ContentTime time, bool accurate) +DCPSubtitleDecoder::seek (ContentTime time, bool accurate) { - Decoder::seek (film, time, accurate); + Decoder::seek (time, accurate); _next = _subtitles.begin (); list >::const_iterator i = _subtitles.begin (); @@ -55,7 +56,7 @@ DCPSubtitleDecoder::seek (shared_ptr film, ContentTime time, bool ac } bool -DCPSubtitleDecoder::pass (shared_ptr) +DCPSubtitleDecoder::pass () { if (_next == _subtitles.end ()) { return true;