From 86eb90b563efb7ef093d5b17a5d6db0fc330e301 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 20 Apr 2022 21:17:54 +0200 Subject: Remove DCP class and replace its functionality with a plain method in libdcp. --- src/lib/dcp_decoder.cc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/lib/dcp_decoder.cc') diff --git a/src/lib/dcp_decoder.cc b/src/lib/dcp_decoder.cc index 85c5d3297..542a8ff7c 100644 --- a/src/lib/dcp_decoder.cc +++ b/src/lib/dcp_decoder.cc @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -68,8 +69,8 @@ using namespace dcpomatic; DCPDecoder::DCPDecoder (shared_ptr film, shared_ptr content, bool fast, bool tolerant, shared_ptr old) - : DCP (content, tolerant) - , Decoder (film) + : Decoder (film) + , _dcp_content (content) { if (content->can_be_played()) { if (content->video) { @@ -101,7 +102,7 @@ DCPDecoder::DCPDecoder (shared_ptr film, shared_ptr_reels; } else { - auto cpl_list = cpls (); + auto cpl_list = dcp::find_and_resolve_cpls(content->directories(), tolerant); if (cpl_list.empty()) { throw DCPError (_("No CPLs found in DCP.")); @@ -118,7 +119,11 @@ DCPDecoder::DCPDecoder (shared_ptr film, shared_ptrkdm()) { + cpl->add (decrypt_kdm_with_helpful_error(content->kdm().get())); } _reels = cpl->reels (); -- cgit v1.2.3