X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcombine_dcp_job.cc;h=5c299492be9721d69705ebbc0c1952c6d7d59f31;hb=61614dcb37ce1bc3cf3fc2915ccac741cfef68e5;hp=3497d4b72a6a986cb8cf611d00af5a8b4fdaa0e1;hpb=dd9be86db6cde0afa5da0d1d1ac43b42e05dca26;p=dcpomatic.git diff --git a/src/lib/combine_dcp_job.cc b/src/lib/combine_dcp_job.cc index 3497d4b72..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 @@ -31,10 +33,11 @@ using std::vector; 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(), "");