Ignore video/audio when it is referenced; should help with #1191.
authorCarl Hetherington <cth@carlh.net>
Tue, 6 Feb 2018 01:57:28 +0000 (01:57 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 6 Feb 2018 01:57:28 +0000 (01:57 +0000)
src/lib/dcp_decoder.cc

index 68aa214ab859e10411af98475a800b2827576ead..3379f8e90e427bf469cacb939608332cf7fc148c 100644 (file)
@@ -77,6 +77,15 @@ DCPDecoder::DCPDecoder (shared_ptr<const DCPContent> c, shared_ptr<Log> log, boo
                cpl = cpls().front ();
        }
 
                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 ();
        _reels = cpl->reels ();
 
        _reel = _reels.begin ();