From 526fd6de4c80a7ac9614a1cb0209efff7b171cd5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 23 Oct 2015 16:12:14 +0100 Subject: Revert "Avoid decoding other packets when looking for subs." This reverts commit 9e025d3f85f9d6d855b3d5e6c90bca0eac3a3d49. It causes corruption in prophet_clip.xml for reasons that are not yet known. --- src/lib/dcp_decoder.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/dcp_decoder.cc') diff --git a/src/lib/dcp_decoder.cc b/src/lib/dcp_decoder.cc index ada0d01d1..21eb2f7ea 100644 --- a/src/lib/dcp_decoder.cc +++ b/src/lib/dcp_decoder.cc @@ -59,7 +59,7 @@ DCPDecoder::DCPDecoder (shared_ptr c, bool fast) } bool -DCPDecoder::pass (PassReason reason) +DCPDecoder::pass () { if (_reel == _reels.end () || !_dcp_content->can_be_played ()) { return true; @@ -68,7 +68,7 @@ DCPDecoder::pass (PassReason reason) double const vfr = _dcp_content->video_frame_rate (); int64_t const frame = _next.frames_round (vfr); - if ((*_reel)->main_picture () && reason != PASS_REASON_SUBTITLE) { + 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 (PassReason reason) } } - if ((*_reel)->main_sound () && reason != PASS_REASON_SUBTITLE) { + 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 (); -- cgit v1.2.3