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;
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;
}
*/
void write_xml (
boost::filesystem::path file,
- std::shared_ptr<const CertificateChain>
+ std::shared_ptr<const CertificateChain>,
+ bool write_cpl_metadata = true
) const;
void resolve_refs (std::vector<std::shared_ptr<Asset>>);
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.");
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()) {
*/
void write_xml (
std::shared_ptr<const CertificateChain> signer = std::shared_ptr<const CertificateChain>(),
- NameFormat name_format = NameFormat("%t")
+ NameFormat name_format = NameFormat("%t"),
+ bool write_cpl_metadata = true
);
void resolve_refs (std::vector<std::shared_ptr<Asset>> assets);