summaryrefslogtreecommitdiff
path: root/src/cpl.cc
diff options
context:
space:
mode:
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;
}