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/reel.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/reel.cc') diff --git a/src/reel.cc b/src/reel.cc index 3f077269..4a266fda 100644 --- a/src/reel.cc +++ b/src/reel.cc @@ -80,3 +80,9 @@ Reel::equals (boost::shared_ptr other, EqualityOptions opt, boost::f return true; } +bool +Reel::encrypted () const +{ + return ((_main_picture && _main_picture->encrypted ()) || (_main_sound && _main_sound->encrypted ())); +} + -- cgit v1.2.3