diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-02-08 13:30:42 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-02-08 13:30:42 +0000 |
| commit | 71de90f74085744d1c5ca35253eec003e41497a2 (patch) | |
| tree | 637e6c2b6c2fa04da3d64864e0adcef30a0847dd /src/dcp.cc | |
| parent | 054cc86d5ba734c72780b07a772a55e3a7000a4f (diff) | |
Fix a couple of errors in Interop XML
Reported-by: Ivan Pullman
Diffstat (limited to 'src/dcp.cc')
| -rw-r--r-- | src/dcp.cc | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -111,11 +111,11 @@ DCP::write_pkl (string pkl_uuid, bool interop, XMLMetadata const & metadata, sha xmlpp::Element* asset_list = pkl->add_child("AssetList"); list<shared_ptr<const Asset> > a = assets (); for (list<shared_ptr<const Asset> >::const_iterator i = a.begin(); i != a.end(); ++i) { - (*i)->write_to_pkl (asset_list); + (*i)->write_to_pkl (asset_list, interop); } for (list<shared_ptr<CPL> >::const_iterator i = _cpls.begin(); i != _cpls.end(); ++i) { - (*i)->write_to_pkl (asset_list); + (*i)->write_to_pkl (asset_list, interop); } if (signer) { @@ -138,7 +138,12 @@ DCP::write_volindex (bool interop) const } xmlpp::Document doc; - xmlpp::Element* root = doc.create_root_node ("VolumeIndex", "http://www.smpte-ra.org/schemas/429-9/2007/AM"); + xmlpp::Element* root; + if (interop) { + root = doc.create_root_node ("VolumeIndex", "http://www.digicine.com/PROTO-ASDCP-AM-20040311#"); + } else { + root = doc.create_root_node ("VolumeIndex", "http://www.smpte-ra.org/schemas/429-9/2007/AM"); + } root->add_child("Index")->add_child_text ("1"); doc.write_to_file (p.string (), "UTF-8"); } |
