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_decoder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/dcp_decoder.cc') diff --git a/src/lib/dcp_decoder.cc b/src/lib/dcp_decoder.cc index 17f0e73b5..727dcbf26 100644 --- a/src/lib/dcp_decoder.cc +++ b/src/lib/dcp_decoder.cc @@ -77,7 +77,7 @@ DCPDecoder::DCPDecoder (shared_ptr film, shared_ptrvideo) { video = make_shared(this, content); } - if (content->audio && !content->audio->mapping().mapped_output_channels().empty()) { + if (content->has_mapped_audio()) { audio = make_shared(this, content->audio, fast); } for (auto i: content->text) { -- cgit v1.2.3