Fix missing preview of referenced DCPs; deciding whether to ignore DCP content is...
authorCarl Hetherington <cth@carlh.net>
Sun, 11 Oct 2015 22:53:37 +0000 (23:53 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 11 Oct 2015 22:53:37 +0000 (23:53 +0100)
src/lib/dcp_decoder.cc

index 5060b9a7f6ba2634d116bb1d4c0bb79e214ba450..1c3285d2dcac223a1156e9df79e7087c735a65a4 100644 (file)
@@ -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<dcp::PictureAsset> asset = (*_reel)->main_picture()->asset ();
                shared_ptr<dcp::MonoPictureAsset> mono = dynamic_pointer_cast<dcp::MonoPictureAsset> (asset);
                shared_ptr<dcp::StereoPictureAsset> stereo = dynamic_pointer_cast<dcp::StereoPictureAsset> (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<const dcp::SoundFrame> 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<dcp::SubtitleString> subs = (*_reel)->main_subtitle()->subtitle_asset()->subtitles_during (
                        dcp::Time (entry_point + frame, vfr, vfr),