summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-03-01 19:41:09 +0100
committerCarl Hetherington <cth@carlh.net>2023-03-01 19:41:09 +0100
commitb3787f9db738723bdb15a2a86feeb84f1b6d593c (patch)
treed30825fd5c5c35f500045b69821814eb098f8ed3 /src
parente2b29fb7033ff554988ce1bfc781822a821cfa15 (diff)
Add include_mca_subdescriptors to DCP::write_xml(), passing it through to the CPL.
Diffstat (limited to 'src')
-rw-r--r--src/dcp.cc4
-rw-r--r--src/dcp.h5
2 files changed, 5 insertions, 4 deletions
diff --git a/src/dcp.cc b/src/dcp.cc
index df5c89b4..02ff048f 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<const CertificateChain> signer, NameFormat name_format)
+DCP::write_xml(shared_ptr<const CertificateChain> signer, bool include_mca_subdescriptors, NameFormat name_format)
{
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, include_mca_subdescriptors);
}
if (_pkls.empty()) {
diff --git a/src/dcp.h b/src/dcp.h
index 7d3d670a..8ce6a96d 100644
--- a/src/dcp.h
+++ b/src/dcp.h
@@ -151,12 +151,13 @@ public:
void set_annotation_text(std::string annotation_text);
/** Write all the XML files for this DCP.
- * @param standand INTEROP or SMPTE
* @param signer Signer to use
+ * @param include_mca_subdescriptors true to write MCA subdescriptors to CPLs.
* @param name_format Name format to use for the CPL and PKL filenames
*/
- void write_xml (
+ void write_xml(
std::shared_ptr<const CertificateChain> signer = std::shared_ptr<const CertificateChain>(),
+ bool include_mca_subdescriptors = false,
NameFormat name_format = NameFormat("%t")
);