summaryrefslogtreecommitdiff
path: root/src/cpl.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-10-09 14:13:39 +0200
committerCarl Hetherington <cth@carlh.net>2022-10-09 14:14:31 +0200
commitc1229ba3e750fa0c877ef8444da82e8ea4a9638f (patch)
tree8d0d7727639dd2d1bbcbe840e27f31c7f4365fb5 /src/cpl.cc
parent3005571cd08c3bdd233fd073b6ae956b9d98b570 (diff)
Make CPL metadata writing optional.optional-cpl-metadata
Diffstat (limited to 'src/cpl.cc')
-rw-r--r--src/cpl.cc4
1 files changed, 2 insertions, 2 deletions
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<std::shared_ptr<Reel>> reels)
void
-CPL::write_xml (boost::filesystem::path file, shared_ptr<const CertificateChain> signer) const
+CPL::write_xml(boost::filesystem::path file, shared_ptr<const CertificateChain> 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<const CertificateChain>
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;
}