X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Ftools%2Fdcpomatic_create.cc;h=4c40c24d3ce2384970e5b12ce39353a84888b655;hb=01cfa8b85b93589476ce3dbff5f9f207ad737abf;hp=e4452b19a431229beac4d9b08aca1303af67213c;hpb=d4422f1e52b559ec7d5552eb6e5e63536b66e0de;p=dcpomatic.git diff --git a/src/tools/dcpomatic_create.cc b/src/tools/dcpomatic_create.cc index e4452b19a..4c40c24d3 100644 --- a/src/tools/dcpomatic_create.cc +++ b/src/tools/dcpomatic_create.cc @@ -61,7 +61,7 @@ public: /* Do nothing in this method so that UI events happen in our thread when we call SignalManager::ui_idle(). */ - void wake_ui () {} + void wake_ui () override {} }; int @@ -120,7 +120,9 @@ main (int argc, char* argv[]) list> film_content_list; if (boost::filesystem::exists (can / "ASSETMAP") || (boost::filesystem::exists (can / "ASSETMAP.xml"))) { - film_content_list.push_back (make_shared(can)); + auto dcp = make_shared(can); + film_content_list.push_back (dcp); + dcp->add_kdm (dcp::EncryptedKDM(dcp::file_to_string(*cli_content.kdm))); } else { /* I guess it's not a DCP */ film_content_list = content_factory (can);