_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 ();
}
} 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 ());