DCPOMATIC_ASSERT (film()->directory());
std::vector<dcp::Channel> extra_active_channels;
- auto add_if_mapped = [this, &extra_active_channels](dcp::Channel channel) {
+ for (auto channel: std::vector<dcp::Channel>{dcp::Channel::HI, dcp::Channel::VI, dcp::Channel::BSL, dcp::Channel::BSR}) {
if (channel_is_mapped(film(), channel)) {
extra_active_channels.push_back(channel);
}
- };
-
- add_if_mapped(dcp::Channel::HI);
- add_if_mapped(dcp::Channel::VI);
- add_if_mapped(dcp::Channel::BSL);
- add_if_mapped(dcp::Channel::BSR);
+ }
/* Write the sound asset into the film directory so that we leave the creation
of the DCP directory until the last minute.