From dcccb2dd1d180b8be67e539395dccbe82b0fb5a8 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 6 Jul 2013 20:30:19 +0100 Subject: 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. --- src/dcp.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/dcp.cc') 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 >::const_iterator i = _cpls.begin(); i != _cpls.end(); ++i) { + if ((*i)->encrypted ()) { + return true; + } + } + + return false; +} -- cgit v1.2.3