summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-02-06 01:57:28 +0000
committerCarl Hetherington <cth@carlh.net>2018-02-06 01:57:28 +0000
commit70a7bb2bd72f90642e01ed660f7d7de495ea0370 (patch)
tree20b72362fabf328c8f4b309a0e63bd68c2df56e4
parentbc2b76ae17ad11bbcaf4291accc49f4fd5ad8157 (diff)
Ignore video/audio when it is referenced; should help with #1191.
-rw-r--r--src/lib/dcp_decoder.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/dcp_decoder.cc b/src/lib/dcp_decoder.cc
index 68aa214ab..3379f8e90 100644
--- a/src/lib/dcp_decoder.cc
+++ b/src/lib/dcp_decoder.cc
@@ -77,6 +77,15 @@ DCPDecoder::DCPDecoder (shared_ptr<const DCPContent> c, shared_ptr<Log> log, boo
cpl = cpls().front ();
}
+ if (!_decode_referenced) {
+ if (c->reference_video()) {
+ video->set_ignore();
+ }
+ if (c->reference_audio()) {
+ audio->set_ignore();
+ }
+ }
+
_reels = cpl->reels ();
_reel = _reels.begin ();