X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Ftranscode_job.cc;h=5e41253b8fe7c96cc8811a51a9091b438df3bf2a;hp=7144f70d5127242fd7dca122e94713f1b761d2ff;hb=5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f;hpb=4e83acad0c2a5c528709a175a80261b8147d3b49 diff --git a/src/lib/transcode_job.cc b/src/lib/transcode_job.cc index 7144f70d5..5e41253b8 100644 --- a/src/lib/transcode_job.cc +++ b/src/lib/transcode_job.cc @@ -30,6 +30,7 @@ #include "log.h" #include "safe_stringstream.h" #include "compose.hpp" +#include #include #include @@ -44,6 +45,7 @@ using std::fixed; using std::setprecision; using std::cout; using boost::shared_ptr; +using boost::make_shared; /** @param s Film to use. */ @@ -90,7 +92,7 @@ TranscodeJob::run () _transcoder.reset (); if (_film->upload_after_make_dcp ()) { - shared_ptr job (new UploadJob (_film)); + shared_ptr job = make_shared (_film); JobManager::instance()->add (job); }