summaryrefslogtreecommitdiff
path: root/test/decryption_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-01-26 21:35:02 +0000
committerCarl Hetherington <cth@carlh.net>2014-01-26 21:35:02 +0000
commit59886567974bd3e79d30a4a9425d86d50bf425f3 (patch)
tree68e583a64144f5cbffede882e1187ecf737b2e43 /test/decryption_test.cc
parent0703842433013ac1d5f79c09d7a8361dc2e565c8 (diff)
It builds again.
Diffstat (limited to 'test/decryption_test.cc')
-rw-r--r--test/decryption_test.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/decryption_test.cc b/test/decryption_test.cc
index b1cb5265..030f0b58 100644
--- a/test/decryption_test.cc
+++ b/test/decryption_test.cc
@@ -24,6 +24,7 @@
#include "cpl.h"
#include "argb_frame.h"
#include "mono_picture_mxf.h"
+#include "reel_picture_asset.h"
#include "reel.h"
#include "test.h"
@@ -34,7 +35,7 @@ static shared_ptr<const dcp::ARGBFrame>
get_frame (dcp::DCP const & dcp)
{
shared_ptr<const dcp::Reel> reel = dcp.cpls().front()->reels().front ();
- shared_ptr<const dcp::PictureMXF> picture = reel->main_picture ();
+ shared_ptr<dcp::PictureMXF> picture = reel->main_picture()->mxf ();
BOOST_CHECK (picture);
shared_ptr<const dcp::MonoPictureMXF> mono_picture = dynamic_pointer_cast<const dcp::MonoPictureMXF> (picture);
@@ -62,7 +63,7 @@ BOOST_AUTO_TEST_CASE (decryption_test)
"test/data/private.key"
);
- encrypted.add_kdm (kdm);
+ encrypted.add (kdm);
shared_ptr<const dcp::ARGBFrame> plaintext_frame = get_frame (plaintext);
shared_ptr<const dcp::ARGBFrame> encrypted_frame = get_frame (encrypted);