diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-03-29 13:28:35 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-04-01 23:43:00 +0200 |
| commit | 1252940b0be76e0cd8f6995a4967d04b65c1e599 (patch) | |
| tree | 8bd37c288a9484407c9719d5e7ca4f6200eb65eb /src | |
| parent | cd929c438d5e727a78027607fa0c047b26e30642 (diff) | |
INVALID_DURATION: note -> asset_id.
Diffstat (limited to 'src')
| -rw-r--r-- | src/verify.cc | 4 | ||||
| -rw-r--r-- | src/verify.h | 2 |
2 files changed, 3 insertions, 3 deletions
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<string (string)> 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: diff --git a/src/verify.h b/src/verify.h index e7d70dd2..fa239302 100644 --- a/src/verify.h +++ b/src/verify.h @@ -171,7 +171,7 @@ public: */ INVALID_INTRINSIC_DURATION, /** An asset's _Duration_ is less than 1 second - * note contains asset ID + * asset_id contains asset ID * reel_index contains the reel index (starting from 0) */ INVALID_DURATION, |
