summaryrefslogtreecommitdiff
path: root/src/dcp.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/dcp.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/dcp.cc')
-rw-r--r--src/dcp.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/dcp.cc b/src/dcp.cc
index fdd7a1f5..c2118ed0 100644
--- a/src/dcp.cc
+++ b/src/dcp.cc
@@ -302,3 +302,15 @@ DCP::assets () const
a.unique ();
return a;
}
+
+bool
+DCP::encrypted () const
+{
+ for (list<shared_ptr<const CPL> >::const_iterator i = _cpls.begin(); i != _cpls.end(); ++i) {
+ if ((*i)->encrypted ()) {
+ return true;
+ }
+ }
+
+ return false;
+}