#include "dcp_content.h"
#include "j2k_image_proxy.h"
#include "image.h"
+#include "config.h"
using std::list;
using std::cout;
{
dcp::DCP dcp (c->directory ());
dcp.read ();
+ if (c->kdm ()) {
+ dcp.add (dcp::DecryptedKDM (c->kdm().get (), Config::instance()->decryption_private_key ()));
+ }
assert (dcp.cpls().size() == 1);
_reels = dcp.cpls().front()->reels ();
_reel = _reels.begin ();
bool
DCPDecoder::pass ()
{
- if (_reel == _reels.end ()) {
+ if (_reel == _reels.end () || !_dcp_content->can_be_played ()) {
return true;
}