summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/reel_writer.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lib/reel_writer.cc b/src/lib/reel_writer.cc
index 9383f7c83..78e504697 100644
--- a/src/lib/reel_writer.cc
+++ b/src/lib/reel_writer.cc
@@ -194,16 +194,11 @@ ReelWriter::ReelWriter (
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.