diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-02-17 16:49:04 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-02-17 16:51:49 +0100 |
| commit | 27ede05dd1fd9966b9dc5da512f60f3edfcdcd31 (patch) | |
| tree | 61ea7b1c59a8f97039e00d5d8b867077e63c2566 /src/lib | |
| parent | 3325b799c27d6a8c5878160631373bc4b8dcee75 (diff) | |
Debug: log audio mapping.2974-mapping
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/audio_mapping.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/audio_mapping.cc b/src/lib/audio_mapping.cc index 939a03414..f6ba0a0b7 100644 --- a/src/lib/audio_mapping.cc +++ b/src/lib/audio_mapping.cc @@ -23,6 +23,7 @@ #include "audio_processor.h" #include "constants.h" #include "dcpomatic_assert.h" +#include "dcpomatic_log.h" #include "digester.h" #include "util.h" #include <dcp/raw_convert.h> @@ -116,6 +117,8 @@ AudioMapping::make_default (AudioProcessor const * processor, optional<boost::fi static int const regexes = sizeof(regex) / sizeof(*regex); + LOG_GENERAL("Setting default mapping for %1 %2", filename.get_value_or({}).string(), processor ? "with processor" : "without processor"); + if (processor) { processor->make_audio_mapping_default (*this); } else { @@ -128,8 +131,11 @@ AudioMapping::make_default (AudioProcessor const * processor, optional<boost::fi for (int i = 0; i < regexes; ++i) { boost::regex e (regex[i].regex, boost::regex::icase); if (boost::regex_match(filename->filename().string(), e) && regex[i].channel < output_channels()) { + LOG_GENERAL("%1 matched regex %2 for channel %3", filename->filename().string(), regex[i].regex, regex[i].channel); set (0, regex[i].channel, 1); guessed = true; + } else { + LOG_GENERAL("%1 did not match regex %2 for channel %3", filename->filename().string(), regex[i].regex, regex[i].channel); } } } |
