Adapt for libdcp use of enum class.
[dcpomatic.git] / src / lib / copy_dcp_details_to_film.cc
index a009735fb7c32a02986b2b59f5f8a7a77718e635..64a38c3353832e81538c67917b3ad3d0cdeb219a 100644 (file)
 #include "audio_content.h"
 #include "ratio.h"
 #include "dcp_content_type.h"
-#include <boost/shared_ptr.hpp>
 #include <map>
 
+
 using std::map;
 using std::string;
-using boost::shared_ptr;
+using std::vector;
+using std::shared_ptr;
+
 
 void
 copy_dcp_details_to_film (shared_ptr<const DCPContent> dcp, shared_ptr<Film> film)
@@ -45,7 +47,7 @@ copy_dcp_details_to_film (shared_ptr<const DCPContent> dcp, shared_ptr<Film> fil
        }
        film->set_encrypted (dcp->encrypted());
        film->set_reel_type (REELTYPE_BY_VIDEO_CONTENT);
-       film->set_interop (dcp->standard() == dcp::INTEROP);
+       film->set_interop (dcp->standard() == dcp::Standard::INTEROP);
        film->set_three_d (dcp->three_d());
 
        if (dcp->video) {
@@ -67,7 +69,6 @@ copy_dcp_details_to_film (shared_ptr<const DCPContent> dcp, shared_ptr<Film> fil
        }
 
        film->set_ratings (dcp->ratings());
-       film->set_content_version (dcp->content_version());
+       film->set_content_versions (dcp->content_versions());
 }
 
-