diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-05-19 13:17:10 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-05-21 00:27:47 +0200 |
| commit | dbf5796e3c750170493436e706d7a0db6a028d95 (patch) | |
| tree | 98af5a56273185f468e024a49770b6383aaa81c0 /src/lib/dcp_content.cc | |
| parent | 83416808c0b1ca732e7a186d3811f1ec796fea08 (diff) | |
Hacks.no-use-video-fixes
Diffstat (limited to 'src/lib/dcp_content.cc')
| -rw-r--r-- | src/lib/dcp_content.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc index 4280ad13a..ca210b558 100644 --- a/src/lib/dcp_content.cc +++ b/src/lib/dcp_content.cc @@ -610,7 +610,7 @@ DCPContent::can_reference (shared_ptr<const Film> film, function<bool (shared_pt static bool check_video (shared_ptr<const Content> c) { - return static_cast<bool>(c->video); + return static_cast<bool>(c->video) && c->video->use(); } bool @@ -643,7 +643,7 @@ DCPContent::can_reference_video (shared_ptr<const Film> film, string& why_not) c static bool check_audio (shared_ptr<const Content> c) { - return static_cast<bool>(c->audio); + return static_cast<bool>(c->audio) && !c->audio->mapping().mapped_output_channels().empty(); } bool |
