Adapt for changes to libdcp API.
[dcpomatic.git] / src / lib / dcp_subtitle.cc
index 17874c27eca9520f50a3bee4a2c2e12d812a095b..66cee4ad866f9772e8cdc96e75dc696a66ac9c14 100644 (file)
 
 #include "dcp_subtitle.h"
 #include "exceptions.h"
-#include <dcp/interop_subtitle_content.h>
-#include <dcp/smpte_subtitle_content.h>
+#include <dcp/interop_subtitle_asset.h>
+#include <dcp/smpte_subtitle_asset.h>
 
 #include "i18n.h"
 
 using boost::shared_ptr;
 
-shared_ptr<dcp::SubtitleContent>
+shared_ptr<dcp::SubtitleAsset>
 DCPSubtitle::load (boost::filesystem::path file) const
 {
-       shared_ptr<dcp::SubtitleContent> sc;
+       shared_ptr<dcp::SubtitleAsset> sc;
        
        try {
-               sc.reset (new dcp::InteropSubtitleContent (file));
+               sc.reset (new dcp::InteropSubtitleAsset (file));
        } catch (...) {
                
        }
 
        if (!sc) {
                try {
-                       sc.reset (new dcp::SMPTESubtitleContent (file, true));
+                       sc.reset (new dcp::SMPTESubtitleAsset (file, true));
                } catch (...) {
 
                }
@@ -47,7 +47,7 @@ DCPSubtitle::load (boost::filesystem::path file) const
 
        if (!sc) {
                try {
-                       sc.reset (new dcp::SMPTESubtitleContent (file, false));
+                       sc.reset (new dcp::SMPTESubtitleAsset (file, false));
                } catch (...) {
 
                }