projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0eff24
)
Fix crash on decoding incomplete DCP content (e.g. on loading a VF with subtitles...
author
Carl Hetherington
<cth@carlh.net>
Wed, 21 Feb 2018 23:13:10 +0000
(23:13 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 21 Feb 2018 23:14:01 +0000
(23:14 +0000)
src/lib/dcp_decoder.cc
patch
|
blob
|
history
diff --git
a/src/lib/dcp_decoder.cc
b/src/lib/dcp_decoder.cc
index b49081dfeb303af13b8d0cfbc9370d8bcdc8b3ff..0250fa9fef31a7a73fd969c9c0a6afd59f236de1 100644
(file)
--- 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 ();