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/dcp.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dcp.cc') diff --git a/src/dcp.cc b/src/dcp.cc index df5c89b4..d507e951 100644 --- a/src/dcp.cc +++ b/src/dcp.cc @@ -400,7 +400,7 @@ DCP::write_volindex (Standard standard) const void -DCP::write_xml (shared_ptr signer, NameFormat name_format) +DCP::write_xml(shared_ptr signer, NameFormat name_format, bool write_cpl_metadata) { if (_cpls.empty()) { throw MiscError ("Cannot write DCP with no CPLs."); @@ -419,7 +419,7 @@ DCP::write_xml (shared_ptr signer, NameFormat name_forma for (auto i: cpls()) { NameFormat::Map values; values['t'] = "cpl"; - i->write_xml (_directory / (name_format.get(values, "_" + i->id() + ".xml")), signer); + i->write_xml(_directory / (name_format.get(values, "_" + i->id() + ".xml")), signer, write_cpl_metadata); } if (_pkls.empty()) { -- cgit v1.2.3