X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcombine_dcp_job.cc;h=5c299492be9721d69705ebbc0c1952c6d7d59f31;hb=3ff1586aad2fa5ba7e5fd95e178614aae12496e6;hp=b3c29b2056fe98b94e8f448c3c638ed3d32a57da;hpb=5a3e836da9480bca0c3ef3384fa2010f358ccc7e;p=dcpomatic.git diff --git a/src/lib/combine_dcp_job.cc b/src/lib/combine_dcp_job.cc index b3c29b205..5c299492b 100644 --- a/src/lib/combine_dcp_job.cc +++ b/src/lib/combine_dcp_job.cc @@ -20,6 +20,8 @@ #include "combine_dcp_job.h" +#include "compose.hpp" +#include "config.h" #include #include @@ -28,13 +30,14 @@ using std::string; using std::vector; -using boost::shared_ptr; +using std::shared_ptr; -CombineDCPJob::CombineDCPJob (vector inputs, boost::filesystem::path output) +CombineDCPJob::CombineDCPJob (vector inputs, boost::filesystem::path output, string annotation_text) : Job (shared_ptr()) , _inputs (inputs) , _output (output) + , _annotation_text (annotation_text) { } @@ -58,7 +61,15 @@ void CombineDCPJob::run () { try { - dcp::combine (_inputs, _output); + dcp::combine ( + _inputs, + _output, + String::compose("libdcp %1", dcp::version), + String::compose("libdcp %1", dcp::version), + dcp::LocalTime().as_string(), + _annotation_text, + Config::instance()->signer_chain() + ); } catch (dcp::CombineError& e) { set_state (FINISHED_ERROR); set_error (e.what(), "");