summaryrefslogtreecommitdiff
path: root/src/parse/cpl.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-06 20:30:19 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-06 20:30:19 +0100
commitdcccb2dd1d180b8be67e539395dccbe82b0fb5a8 (patch)
tree53b76a2df1343e5896bc9462ec8661179ede2ee3 /src/parse/cpl.cc
parent5f71c3f0a7a041b3621f7325915d1105424f7e53 (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/parse/cpl.cc')
-rw-r--r--src/parse/cpl.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/parse/cpl.cc b/src/parse/cpl.cc
index c4cf4374..e7ed4497 100644
--- a/src/parse/cpl.cc
+++ b/src/parse/cpl.cc
@@ -111,6 +111,8 @@ Picture::Picture (shared_ptr<const cxml::Node> node)
}
+ key_id = node->optional_string_child ("KeyId").get_value_or ("");
+
node->ignore_child ("Hash");
node->done ();
@@ -124,7 +126,8 @@ MainSound::MainSound (shared_ptr<const cxml::Node> node)
intrinsic_duration = node->number_child<int64_t> ("IntrinsicDuration");
entry_point = node->number_child<int64_t> ("EntryPoint");
duration = node->number_child<int64_t> ("Duration");
-
+ key_id = node->optional_string_child ("KeyId").get_value_or ("");
+
node->ignore_child ("Hash");
node->ignore_child ("Language");