Some more decode logging.
[dcpomatic.git] / src / lib / dcp_subtitle_decoder.cc
index d4e1a7fa29ce7d1cacf061c95256268f21ddfffb..daafee3e5acfaf687a6d4b5de76f064dfeede0df 100644 (file)
@@ -28,12 +28,13 @@ using std::cout;
 using boost::shared_ptr;
 using boost::bind;
 
-DCPSubtitleDecoder::DCPSubtitleDecoder (shared_ptr<const DCPSubtitleContent> content)
+DCPSubtitleDecoder::DCPSubtitleDecoder (shared_ptr<const DCPSubtitleContent> content, shared_ptr<Log> log)
 {
        subtitle.reset (
                new SubtitleDecoder (
                        this,
                        content->subtitle,
+                       log,
                        bind (&DCPSubtitleDecoder::image_subtitles_during, this, _1, _2),
                        bind (&DCPSubtitleDecoder::text_subtitles_during, this, _1, _2)
                        )
@@ -79,7 +80,7 @@ DCPSubtitleDecoder::pass (PassReason, bool)
        }
 
        subtitle->give_text (p, s);
-       _position = p.from;
+       subtitle->set_position (p.from);
 
        return false;
 }