X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_examiner.cc;h=9969245305211b901a4ec66db317af6d53143c51;hb=6ab8e99f22bfe61bddbd204d4265071729c1f37d;hp=e25583cb69064b9ac3dd2fdb7352ab17c13efece;hpb=8457b7c1066da4e14f00a76f3855e60d986b179f;p=dcpomatic.git diff --git a/src/lib/dcp_examiner.cc b/src/lib/dcp_examiner.cc index e25583cb6..996924530 100644 --- a/src/lib/dcp_examiner.cc +++ b/src/lib/dcp_examiner.cc @@ -163,6 +163,14 @@ DCPExaminer::DCPExaminer (shared_ptr content) _has_subtitles = true; } + + if (i->main_picture()) { + _reel_lengths.push_back (i->main_picture()->duration()); + } else if (i->main_sound()) { + _reel_lengths.push_back (i->main_sound()->duration()); + } else if (i->main_subtitle()) { + _reel_lengths.push_back (i->main_subtitle()->duration()); + } } _encrypted = cpl->encrypted (); @@ -192,10 +200,6 @@ DCPExaminer::DCPExaminer (shared_ptr content) } } catch (dcp::DCPReadError& e) { _kdm_valid = false; - if (_encrypted && content->kdm ()) { - /* XXX: maybe don't use an exception for this */ - throw runtime_error (_("The KDM does not decrypt the DCP. Perhaps it is targeted at the wrong CPL.")); - } } DCPOMATIC_ASSERT (cpl->standard ());