From: Carl Hetherington Date: Wed, 21 Feb 2018 23:13:10 +0000 (+0000) Subject: Fix crash on decoding incomplete DCP content (e.g. on loading a VF with subtitles... X-Git-Tag: v2.13.0~56 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=ea2429d315ba4fa2d476a755c07296fe165e9417;p=dcpomatic.git Fix crash on decoding incomplete DCP content (e.g. on loading a VF with subtitles into the player). --- diff --git a/src/lib/dcp_decoder.cc b/src/lib/dcp_decoder.cc index b49081dfe..0250fa9fe 100644 --- a/src/lib/dcp_decoder.cc +++ b/src/lib/dcp_decoder.cc @@ -253,6 +253,10 @@ DCPDecoder::get_readers () void DCPDecoder::seek (ContentTime t, bool accurate) { + if (!_dcp_content->can_be_played ()) { + return; + } + Decoder::seek (t, accurate); _reel = _reels.begin ();