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_decoder.cc | |
| parent | 60d53efe2cb3bddf98ca3cba937247a8024e7d63 (diff) | |
Add and use Content::has_mapped_audio().
Diffstat (limited to 'src/lib/dcp_decoder.cc')
| -rw-r--r-- | src/lib/dcp_decoder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<const Film> film, shared_ptr<const DCPContent if (content->video) { video = make_shared<VideoDecoder>(this, content); } - if (content->audio && !content->audio->mapping().mapped_output_channels().empty()) { + if (content->has_mapped_audio()) { audio = make_shared<AudioDecoder>(this, content->audio, fast); } for (auto i: content->text) { |
