diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-05-19 23:27:34 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-05-19 23:27:34 +0200 |
| commit | fd198a9cb1f033773102f54603bd06b98f3c7fb1 (patch) | |
| tree | 29eb553140487ad3c841b2c4348c122438c918a9 /src/lib/dcp_content.cc | |
| parent | 60d53efe2cb3bddf98ca3cba937247a8024e7d63 (diff) | |
Add and use Content::has_mapped_audio().
Diffstat (limited to 'src/lib/dcp_content.cc')
| -rw-r--r-- | src/lib/dcp_content.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc index bdd5e0e09..6e573c639 100644 --- a/src/lib/dcp_content.cc +++ b/src/lib/dcp_content.cc @@ -731,7 +731,7 @@ DCPContent::can_reference_audio (shared_ptr<const Film> film, string& why_not) c /// TRANSLATORS: this string will follow "Cannot reference this DCP: " return can_reference( film, [](shared_ptr<const Content> c) { - return static_cast<bool>(c->audio) && !c->audio->mapping().mapped_output_channels().empty(); + return c->has_mapped_audio(); }, _("it overlaps other audio content; remove the other content."), why_not |
