Modify for new libdcp API.
[dcpomatic.git] / src / lib / dcp_subtitle_decoder.cc
index c1f0ab500bd54962a8780133181e04426462c0d2..2a9b52869ce770693f85cb44e8ac7e9d1af78a22 100644 (file)
 
 */
 
-#include <dcp/subtitle_content.h>
 #include "dcp_subtitle_decoder.h"
 #include "dcp_subtitle_content.h"
+#include <dcp/interop_subtitle_content.h>
 
 using std::list;
+using std::cout;
 using boost::shared_ptr;
 
 DCPSubtitleDecoder::DCPSubtitleDecoder (shared_ptr<const DCPSubtitleContent> content)
        : SubtitleDecoder (content)
 {
-       dcp::SubtitleContent c (content->path (0), false);
+       dcp::InteropSubtitleContent c (content->path (0));
        _subtitles = c.subtitles ();
        _next = _subtitles.begin ();
 }
@@ -55,7 +56,7 @@ DCPSubtitleDecoder::pass ()
        s.push_back (*_next);
        text_subtitle (s);
        ++_next;
-       
+
        return false;
 }