From 707a603ae2eba082f6ba824a510295dfb213219b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 11 Oct 2015 23:53:37 +0100 Subject: [PATCH] Fix missing preview of referenced DCPs; deciding whether to ignore DCP content is done in the player. --- src/lib/dcp_decoder.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/dcp_decoder.cc b/src/lib/dcp_decoder.cc index 5060b9a7f..1c3285d2d 100644 --- a/src/lib/dcp_decoder.cc +++ b/src/lib/dcp_decoder.cc @@ -68,7 +68,7 @@ DCPDecoder::pass () double const vfr = _dcp_content->video_frame_rate (); int64_t const frame = _next.frames_round (vfr); - if ((*_reel)->main_picture () && !_dcp_content->reference_video ()) { + if ((*_reel)->main_picture ()) { shared_ptr asset = (*_reel)->main_picture()->asset (); shared_ptr mono = dynamic_pointer_cast (asset); shared_ptr stereo = dynamic_pointer_cast (asset); @@ -88,7 +88,7 @@ DCPDecoder::pass () } } - if ((*_reel)->main_sound () && !_dcp_content->reference_audio ()) { + if ((*_reel)->main_sound ()) { int64_t const entry_point = (*_reel)->main_sound()->entry_point (); shared_ptr sf = (*_reel)->main_sound()->asset()->get_frame (entry_point + frame); uint8_t const * from = sf->data (); @@ -106,7 +106,7 @@ DCPDecoder::pass () audio (_dcp_content->audio_stream(), data, _next); } - if ((*_reel)->main_subtitle () && !_dcp_content->reference_subtitle ()) { + if ((*_reel)->main_subtitle ()) { int64_t const entry_point = (*_reel)->main_subtitle()->entry_point (); list subs = (*_reel)->main_subtitle()->subtitle_asset()->subtitles_during ( dcp::Time (entry_point + frame, vfr, vfr), -- 2.30.2