if (!video) {
return DCPTime();
}
- FrameRateChange const frc (active_video_frame_rate(film), film->video_frame_rate());
+ FrameRateChange const frc (film, shared_from_this());
return DCPTime::from_frames (llrint(video->length() * frc.factor()), film->video_frame_rate());
}
{
shared_ptr<DCPDecoder> decoder;
try {
- decoder.reset (new DCPDecoder (shared_from_this(), false));
+ decoder.reset (new DCPDecoder (film, shared_from_this(), false));
} catch (dcp::DCPReadError) {
/* We couldn't read the DCP, so it's probably missing */
return false;
{
shared_ptr<DCPDecoder> decoder;
try {
- decoder.reset (new DCPDecoder (shared_from_this(), false));
+ decoder.reset (new DCPDecoder (film, shared_from_this(), false));
} catch (dcp::DCPReadError) {
+
/* We couldn't read the DCP, so it's probably missing */
return false;
} catch (dcp::KDMDecryptionError) {