Various fixes to resampling.
[dcpomatic.git] / src / lib / dcp_content_type.cc
index 321aa61da494c2a9955e3b6a128f13e994ba4a5c..1f50c8dc4da519fc0881f336af798be70020e1f1 100644 (file)
@@ -28,9 +28,9 @@ using namespace std;
 
 vector<DCPContentType const *> DCPContentType::_dcp_content_types;
 
-DCPContentType::DCPContentType (string p, string d)
+DCPContentType::DCPContentType (string p, libdcp::ContentKind k)
        : _pretty_name (p)
-       , _dcp_name (d)
+       , _libdcp_kind (k)
 {
 
 }
@@ -38,16 +38,16 @@ DCPContentType::DCPContentType (string p, string d)
 void
 DCPContentType::setup_dcp_content_types ()
 {
-       _dcp_content_types.push_back (new DCPContentType ("Feature", "feature"));
-       _dcp_content_types.push_back (new DCPContentType ("Short", "short"));
-       _dcp_content_types.push_back (new DCPContentType ("Trailer", "trailer"));
-       _dcp_content_types.push_back (new DCPContentType ("Test", "test"));
-       _dcp_content_types.push_back (new DCPContentType ("Transitional", "transitional"));
-       _dcp_content_types.push_back (new DCPContentType ("Rating", "rating"));
-       _dcp_content_types.push_back (new DCPContentType ("Teaser", "teaster"));
-       _dcp_content_types.push_back (new DCPContentType ("Policy", "policy"));
-       _dcp_content_types.push_back (new DCPContentType ("Public Service Announcement", "psa"));
-       _dcp_content_types.push_back (new DCPContentType ("Advertisement", "advertisement"));
+       _dcp_content_types.push_back (new DCPContentType ("Feature", libdcp::FEATURE));
+       _dcp_content_types.push_back (new DCPContentType ("Short", libdcp::SHORT));
+       _dcp_content_types.push_back (new DCPContentType ("Trailer", libdcp::TRAILER));
+       _dcp_content_types.push_back (new DCPContentType ("Test", libdcp::TEST));
+       _dcp_content_types.push_back (new DCPContentType ("Transitional", libdcp::TRANSITIONAL));
+       _dcp_content_types.push_back (new DCPContentType ("Rating", libdcp::RATING));
+       _dcp_content_types.push_back (new DCPContentType ("Teaser", libdcp::TEASER));
+       _dcp_content_types.push_back (new DCPContentType ("Policy", libdcp::POLICY));
+       _dcp_content_types.push_back (new DCPContentType ("Public Service Announcement", libdcp::PUBLIC_SERVICE_ANNOUNCEMENT));
+       _dcp_content_types.push_back (new DCPContentType ("Advertisement", libdcp::ADVERTISEMENT));
 }
 
 DCPContentType const *