From fd198a9cb1f033773102f54603bd06b98f3c7fb1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 19 May 2024 23:27:34 +0200 Subject: Add and use Content::has_mapped_audio(). --- src/lib/dcp_content.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/dcp_content.cc') 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 film, string& why_not) c /// TRANSLATORS: this string will follow "Cannot reference this DCP: " return can_reference( film, [](shared_ptr c) { - return static_cast(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 -- cgit v1.2.3