Try to fix static linking of DCP-o-matic libs with the GL stuff.
[dcpomatic.git] / src / tools / dcpomatic_create.cc
index 66a1c0dab6407613d0042103951d5f39b9560723..40d764c2b64e430e8c6fb6521d3fa760fd39571f 100644 (file)
@@ -80,7 +80,7 @@ main (int argc, char* argv[])
        }
 
        if (cc.config_dir) {
-               Config::override_path = *cc.config_dir;
+               State::override_path = *cc.config_dir;
        }
 
        signal_manager = new SimpleSignalManager ();
@@ -100,6 +100,10 @@ main (int argc, char* argv[])
                film->set_signed (!cc.no_sign);
                film->set_encrypted (cc.encrypt);
                film->set_three_d (cc.threed);
+               film->set_resolution (cc.fourk ? RESOLUTION_4K : RESOLUTION_2K);
+               if (cc.j2k_bandwidth) {
+                       film->set_j2k_bandwidth (*cc.j2k_bandwidth);
+               }
 
                BOOST_FOREACH (CreateCLI::Content i, cc.content) {
                        boost::filesystem::path const can = boost::filesystem::canonical (i.path);