diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-06 20:30:19 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-06 20:30:19 +0100 |
| commit | dcccb2dd1d180b8be67e539395dccbe82b0fb5a8 (patch) | |
| tree | 53b76a2df1343e5896bc9462ec8661179ede2ee3 /src/sound_asset.cc | |
| parent | 5f71c3f0a7a041b3621f7325915d1105424f7e53 (diff) | |
Move some CPL writing from picture/sound assets to the MXF. Pick up key_id from CPL assets and hence provide and test for encrypted() method on DCP.
Diffstat (limited to 'src/sound_asset.cc')
| -rw-r--r-- | src/sound_asset.cc | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/sound_asset.cc b/src/sound_asset.cc index 45a65646..0901e915 100644 --- a/src/sound_asset.cc +++ b/src/sound_asset.cc @@ -216,19 +216,10 @@ SoundAsset::construct (boost::function<string (Channel)> get_path, MXFMetadata c } } -void -SoundAsset::write_to_cpl (xmlpp::Node* node) const +string +SoundAsset::cpl_node_name () const { - xmlpp::Node* ms = node->add_child ("MainSound"); - ms->add_child ("Id")->add_child_text ("urn:uuid:" + _uuid); - ms->add_child ("AnnotationText")->add_child_text (_file_name); - ms->add_child ("EditRate")->add_child_text (lexical_cast<string> (_edit_rate) + " 1"); - ms->add_child ("IntrinsicDuration")->add_child_text (lexical_cast<string> (_intrinsic_duration)); - ms->add_child ("EntryPoint")->add_child_text (lexical_cast<string> (_entry_point)); - ms->add_child ("Duration")->add_child_text (lexical_cast<string> (_duration)); - if (_encrypted) { - ms->add_child("KeyId")->add_child_text("urn:uuid:" + _key_id); - } + return "MainSound"; } bool |
