Modify for new libdcp API.
authorCarl Hetherington <cth@carlh.net>
Mon, 15 Dec 2014 13:59:15 +0000 (13:59 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 15 Dec 2014 13:59:15 +0000 (13:59 +0000)
src/lib/dcp_subtitle_content.cc
src/lib/dcp_subtitle_decoder.cc

index 798afbfc39dfc87aca74d50142b9076bd98b9770..85c28d03832acbb8e2ec126175e370def41859ea 100644 (file)
@@ -18,7 +18,7 @@
 */
 
 #include "dcp_subtitle_content.h"
-#include <dcp/subtitle_content.h>
+#include <dcp/interop_subtitle_content.h>
 #include <dcp/raw_convert.h>
 
 #include "i18n.h"
@@ -47,7 +47,7 @@ void
 DCPSubtitleContent::examine (shared_ptr<Job> job, bool calculate_digest)
 {
        Content::examine (job, calculate_digest);
-       dcp::SubtitleContent sc (path (0), false);
+       dcp::InteropSubtitleContent sc (path (0));
        _subtitle_language = sc.language ();
        _length = DCPTime::from_seconds (sc.latest_subtitle_out().to_seconds ());
 }
index f61c69a7bd23783be3b9e9122227aa6e4a5bcc2a..2a9b52869ce770693f85cb44e8ac7e9d1af78a22 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "dcp_subtitle_decoder.h"
 #include "dcp_subtitle_content.h"
-#include <dcp/subtitle_content.h>
+#include <dcp/interop_subtitle_content.h>
 
 using std::list;
 using std::cout;
@@ -28,7 +28,7 @@ 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 ();
 }