summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-02-21 23:13:10 +0000
committerCarl Hetherington <cth@carlh.net>2018-02-21 23:14:01 +0000
commitea2429d315ba4fa2d476a755c07296fe165e9417 (patch)
treeb7d3405494d371dc66bf02f787030a92523c88c6 /src/lib
parenta0eff2446835a2a29d751a4810fe182c486a2eb6 (diff)
Fix crash on decoding incomplete DCP content (e.g. on loading a VF with subtitles into the player).
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/dcp_decoder.cc4
1 files changed, 4 insertions, 0 deletions
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 ();