From c1229ba3e750fa0c877ef8444da82e8ea4a9638f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 9 Oct 2022 14:13:39 +0200 Subject: Make CPL metadata writing optional. --- src/cpl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cpl.cc') diff --git a/src/cpl.cc b/src/cpl.cc index ee1817fc..5404acd9 100644 --- a/src/cpl.cc +++ b/src/cpl.cc @@ -181,7 +181,7 @@ CPL::set (std::vector> reels) void -CPL::write_xml (boost::filesystem::path file, shared_ptr signer) const +CPL::write_xml(boost::filesystem::path file, shared_ptr signer, bool write_cpl_metadata) const { xmlpp::Document doc; xmlpp::Element* root; @@ -225,7 +225,7 @@ CPL::write_xml (boost::filesystem::path file, shared_ptr bool first = true; for (auto i: _reels) { auto asset_list = i->write_to_cpl (reel_list, _standard); - if (first && _standard == Standard::SMPTE) { + if (first && _standard == Standard::SMPTE && write_cpl_metadata) { maybe_write_composition_metadata_asset (asset_list); first = false; } -- cgit v1.2.3