Updated nl_NL translation from Rob van Nieuwkerk.
[dcpomatic.git] / src / lib / dcp_subtitle.cc
index 17874c27eca9520f50a3bee4a2c2e12d812a095b..be64937809765486e8bbed8689476d1e1375726c 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));
-               } catch (...) {
-
-               }
        }
 
        if (!sc) {
                try {
-                       sc.reset (new dcp::SMPTESubtitleContent (file, false));
+                       sc.reset (new dcp::SMPTESubtitleAsset (file));
                } catch (...) {
 
                }