diff options
Diffstat (limited to 'src/lib/dcp_content.cc')
| -rw-r--r-- | src/lib/dcp_content.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc index 378ba1882..c459a9ece 100644 --- a/src/lib/dcp_content.cc +++ b/src/lib/dcp_content.cc @@ -723,6 +723,14 @@ DCPContent::can_reference_audio (shared_ptr<const Film> film, string& why_not) c return false; } + if (audio && audio->stream()) { + auto const channels = audio->stream()->channels(); + if (channels != film->audio_channels()) { + why_not = String::compose(_("it has a different number of audio channels than the project; set the project to have %1 channels."), channels); + return false; + } + } + auto part = [](shared_ptr<const Content> c) { return static_cast<bool>(c->audio) && !c->audio->mapping().mapped_output_channels().empty(); }; |
