diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-10-09 14:13:39 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-10-09 14:14:31 +0200 |
| commit | c1229ba3e750fa0c877ef8444da82e8ea4a9638f (patch) | |
| tree | 8d0d7727639dd2d1bbcbe840e27f31c7f4365fb5 /src/dcp.cc | |
| parent | 3005571cd08c3bdd233fd073b6ae956b9d98b570 (diff) | |
Make CPL metadata writing optional.optional-cpl-metadata
Diffstat (limited to 'src/dcp.cc')
| -rw-r--r-- | src/dcp.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -400,7 +400,7 @@ DCP::write_volindex (Standard standard) const void -DCP::write_xml (shared_ptr<const CertificateChain> signer, NameFormat name_format) +DCP::write_xml(shared_ptr<const CertificateChain> 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<const CertificateChain> 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()) { |
