projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
57b3504
)
Bail early if nothing can be referenced from this content.
author
Carl Hetherington
<cth@carlh.net>
Tue, 2 Nov 2021 14:08:05 +0000
(15:08 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 3 Nov 2021 10:29:03 +0000
(11:29 +0100)
src/lib/player.cc
patch
|
blob
|
history
diff --git
a/src/lib/player.cc
b/src/lib/player.cc
index 2669b350fb694e7085bd468eb5904f21fb047bb8..c5d315f56a22290551b178fcd2cec5a107ae2252 100644
(file)
--- a/
src/lib/player.cc
+++ b/
src/lib/player.cc
@@
-565,6
+565,10
@@
Player::get_reel_assets ()
continue;
}
continue;
}
+ if (!dcp->reference_video() && !dcp->reference_audio() && !dcp->reference_text(TextType::OPEN_SUBTITLE) && !dcp->reference_text(TextType::CLOSED_CAPTION)) {
+ continue;
+ }
+
scoped_ptr<DCPDecoder> decoder;
try {
decoder.reset (new DCPDecoder(_film, dcp, false, false, shared_ptr<DCPDecoder>()));
scoped_ptr<DCPDecoder> decoder;
try {
decoder.reset (new DCPDecoder(_film, dcp, false, false, shared_ptr<DCPDecoder>()));