X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Ftools%2Fdcpomatic_batch.cc;h=3570dda084a2dc0a257c43169db4bf03165b2281;hp=a112e457a4af514463a69e2fc425f4c98a6c50b1;hb=5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f;hpb=4e83acad0c2a5c528709a175a80261b8147d3b49 diff --git a/src/tools/dcpomatic_batch.cc b/src/tools/dcpomatic_batch.cc index a112e457a..3570dda08 100644 --- a/src/tools/dcpomatic_batch.cc +++ b/src/tools/dcpomatic_batch.cc @@ -36,12 +36,14 @@ #include #include #include +#include #include using std::exception; using std::string; using std::cout; using boost::shared_ptr; +using boost::make_shared; using boost::thread; using boost::scoped_array; @@ -128,7 +130,7 @@ public: void start_job (boost::filesystem::path path) { try { - shared_ptr film (new Film (path)); + shared_ptr film = make_shared (path); film->read_metadata (); film->make_dcp (); } catch (std::exception& e) {