summaryrefslogtreecommitdiff
path: root/src/lib/reel_writer.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-06-30 23:53:57 +0200
committerCarl Hetherington <cth@carlh.net>2023-06-30 23:53:57 +0200
commit71acc01a622ce33abb18f541925e8ec42c834859 (patch)
tree7bbfe1d2a517a3b2ca04aa5bb7c4c770ebca7652 /src/lib/reel_writer.cc
parentd21efc88c0c5549160a55cd25d6bc2098752cf75 (diff)
Add channel_is_mapped().
Diffstat (limited to 'src/lib/reel_writer.cc')
-rw-r--r--src/lib/reel_writer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/reel_writer.cc b/src/lib/reel_writer.cc
index fc78740bb..e8db82fbb 100644
--- a/src/lib/reel_writer.cc
+++ b/src/lib/reel_writer.cc
@@ -27,6 +27,7 @@
#include "dcpomatic_log.h"
#include "digester.h"
#include "film.h"
+#include "film_util.h"
#include "image.h"
#include "image_png.h"
#include "job.h"
@@ -192,10 +193,9 @@ ReelWriter::ReelWriter (
DCPOMATIC_ASSERT (film()->directory());
- auto mapped = film()->mapped_audio_channels();
std::vector<dcp::Channel> extra_active_channels;
- auto add_if_mapped = [mapped, &extra_active_channels](dcp::Channel channel) {
- if (std::find(mapped.begin(), mapped.end(), static_cast<int>(channel)) != mapped.end()) {
+ auto add_if_mapped = [this, &extra_active_channels](dcp::Channel channel) {
+ if (channel_is_mapped(film(), channel)) {
extra_active_channels.push_back(channel);
}
};