diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-03-31 22:28:41 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-04-01 23:43:00 +0200 |
| commit | fe938d4dd52ab41be4cdd441d5d4289deae6190d (patch) | |
| tree | bf0cc0e3b28a947c336a91f3c4e64341959561d1 /src/verify.cc | |
| parent | bce04bc8feda6990157536b455fcdafcb3588ab4 (diff) | |
INVALID_MAIN_SOUND_CONFIGURATION: note -> error.
Diffstat (limited to 'src/verify.cc')
| -rw-r--r-- | src/verify.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/verify.cc b/src/verify.cc index 4cb21d31..bc3adea0 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -1700,9 +1700,10 @@ verify_cpl(Context& context, shared_ptr<const CPL> cpl) if (auto msc = cpl->main_sound_configuration()) { if (msc->valid() && context.audio_channels && msc->channels() != *context.audio_channels) { context.add_note( - VerificationNote::Code::INVALID_MAIN_SOUND_CONFIGURATION, - String::compose("MainSoundConfiguration has %1 channels but sound assets have %2", msc->channels(), *context.audio_channels), - cpl->file().get() + VerificationNote( + VerificationNote::Code::INVALID_MAIN_SOUND_CONFIGURATION, + cpl->file().get() + ).set_error(fmt::format("MainSoundConfiguration has {} channels but sound assets have {}", msc->channels(), *context.audio_channels)) ); } } @@ -2189,7 +2190,7 @@ dcp::note_to_string(VerificationNote note, function<string (string)> process_str case VerificationNote::Code::MISMATCHED_SOUND_CHANNEL_COUNTS: return compose("The sound assets do not all have the same channel count; the first to differ is %1", filename()); case VerificationNote::Code::INVALID_MAIN_SOUND_CONFIGURATION: - return compose("<MainSoundConfiguration> has an invalid value: %1", note.note().get()); + return compose("<MainSoundConfiguration> has an invalid value: %1", *note.error()); case VerificationNote::Code::MISSING_FONT: return compose("The font file for font ID \"%1\" was not found, or was not referred to in the ASSETMAP.", note.note().get()); case VerificationNote::Code::INVALID_JPEG2000_TILE_PART_SIZE: |
