From 1252940b0be76e0cd8f6995a4967d04b65c1e599 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 29 Mar 2026 13:28:35 +0200 Subject: INVALID_DURATION: note -> asset_id. --- src/verify.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/verify.cc') diff --git a/src/verify.cc b/src/verify.cc index 2e4efb62..fcee2967 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -1419,7 +1419,7 @@ verify_reel( { for (auto i: reel->file_assets()) { if (i->duration() && (i->duration().get() * i->edit_rate().denominator / i->edit_rate().numerator) < 1) { - context.add_note(VerificationNote::Code::INVALID_DURATION, i->id()); + context.add_note(VerificationNote(VerificationNote::Code::INVALID_DURATION).set_asset_id(i->id())); } if ((i->intrinsic_duration() * i->edit_rate().denominator / i->edit_rate().numerator) < 1) { context.add_note(VerificationNote(VerificationNote::Code::INVALID_INTRINSIC_DURATION).set_asset_id(i->id())); @@ -1988,7 +1988,7 @@ dcp::note_to_string(VerificationNote note, function process_str case VerificationNote::Code::INVALID_INTRINSIC_DURATION: return compose("The intrinsic duration of the asset %1 is less than 1 second.", *note.asset_id()); case VerificationNote::Code::INVALID_DURATION: - return compose("The duration of the asset %1 is less than 1 second.", note.note().get()); + return compose("The duration of the asset %1 is less than 1 second.", *note.asset_id()); case VerificationNote::Code::VALID_PICTURE_FRAME_SIZES_IN_BYTES: return compose("Each frame of the picture asset %1 has a bit rate safely under the limit of 250Mbit/s.", filename()); case VerificationNote::Code::INVALID_PICTURE_FRAME_SIZE_IN_BYTES: -- cgit v1.2.3