diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-05-30 20:58:31 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-05-30 20:58:31 +0200 |
| commit | a7ad0cdff67faffc6bdaef21c100d4ef4016e406 (patch) | |
| tree | 7647368fe2fda9344f57236b6efd6bd06692a0fb /src/lib/combine_dcp_job.cc | |
| parent | cc105289bed33989e5c399433e28208652b18e70 (diff) | |
Allow annotation text to be set when combining DCPs.
Diffstat (limited to 'src/lib/combine_dcp_job.cc')
| -rw-r--r-- | src/lib/combine_dcp_job.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/lib/combine_dcp_job.cc b/src/lib/combine_dcp_job.cc index 3497d4b72..ae6d8b289 100644 --- a/src/lib/combine_dcp_job.cc +++ b/src/lib/combine_dcp_job.cc @@ -20,6 +20,7 @@ #include "combine_dcp_job.h" +#include "compose.hpp" #include <dcp/combine.h> #include <dcp/exceptions.h> @@ -31,10 +32,11 @@ using std::vector; using std::shared_ptr; -CombineDCPJob::CombineDCPJob (vector<boost::filesystem::path> inputs, boost::filesystem::path output) +CombineDCPJob::CombineDCPJob (vector<boost::filesystem::path> inputs, boost::filesystem::path output, string annotation_text) : Job (shared_ptr<Film>()) , _inputs (inputs) , _output (output) + , _annotation_text (annotation_text) { } @@ -58,7 +60,14 @@ 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 + ); } catch (dcp::CombineError& e) { set_state (FINISHED_ERROR); set_error (e.what(), ""); |
