diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-10-16 20:19:53 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-10-16 20:19:53 +0200 |
| commit | e5e2c1d6817e04fc67a0472e7e8ca904893544e2 (patch) | |
| tree | 0f35e5633e60b0aa297e7693c435c79a86cf7918 /src/lib/reel_writer.cc | |
| parent | 4b8f2b64ebb7fcba20c3c03d7bccd08e48612fbb (diff) | |
Replace a slightly tortured lambda with a loop.
Diffstat (limited to 'src/lib/reel_writer.cc')
| -rw-r--r-- | src/lib/reel_writer.cc | 9 |
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. |
