Adapt for libdcp use of enum class.
[dcpomatic.git] / src / lib / create_cli.cc
index b670282b4717a0bfcbc3988b391a55cd1f5d1bcb..de26a7412355919b1f97c6085f3a44b51f8e2a74 100644 (file)
@@ -79,9 +79,8 @@ CreateCLI::CreateCLI (int argc, char* argv[])
        , dcp_content_type (0)
        , container_ratio (0)
        , still_length (10)
-       , standard (dcp::SMPTE)
+       , standard (dcp::Standard::SMPTE)
        , no_use_isdcf_name (false)
-       , no_sign (false)
        , fourk (false)
 {
        string dcp_content_type_string = "TST";
@@ -113,8 +112,6 @@ CreateCLI::CreateCLI (int argc, char* argv[])
                        encrypt = claimed = true;
                } else if (a == "--no-use-isdcf-name") {
                        no_use_isdcf_name = claimed = true;
-               } else if (a == "--no-sign") {
-                       no_sign = claimed = true;
                } else if (a == "--threed") {
                        threed = claimed = true;
                } else if (a == "--left-eye") {
@@ -194,6 +191,10 @@ CreateCLI::CreateCLI (int argc, char* argv[])
                return;
        }
 
+       if (standard_string == "interop") {
+               standard = dcp::Standard::INTEROP;
+       }
+
        if (content.empty()) {
                error = String::compose("%1: no content specified", argv[0]);
                return;