diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-05-17 23:07:03 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-05-17 23:07:05 +0200 |
| commit | 4347717803d202a41792faf42e846fd73a0586bf (patch) | |
| tree | abc717a630e4768f3b05376274b8d47aaa059c57 /src/dcp.cc | |
| parent | 47b82590f5d1538b599e323daa5e0c792e4d4695 (diff) | |
Introduce SMPTEFlavour and use it to decide which optional things to write.
This also adds a possibly-correct idea of what "SMPTE A" is supposed to mean.
Diffstat (limited to 'src/dcp.cc')
| -rw-r--r-- | src/dcp.cc | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -447,7 +447,11 @@ DCP::write_volindex (Standard standard) const void -DCP::write_xml(shared_ptr<const CertificateChain> signer, bool include_mca_subdescriptors, NameFormat name_format) +DCP::write_xml( + shared_ptr<const CertificateChain> signer, + SMPTEFlavour flavour, + NameFormat name_format + ) { if (_cpls.empty()) { throw MiscError ("Cannot write DCP with no CPLs."); @@ -466,7 +470,11 @@ DCP::write_xml(shared_ptr<const CertificateChain> signer, bool include_mca_subde for (auto i: cpls()) { NameFormat::Map values; values['t'] = "cpl"; - i->write_xml(_directory / (name_format.get(values, "_" + i->id() + ".xml")), signer, include_mca_subdescriptors); + i->write_xml( + _directory / (name_format.get(values, "_" + i->id() + ".xml")), + signer, + flavour + ); } if (_pkls.empty()) { |
