summaryrefslogtreecommitdiff
path: root/src/verify.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-03-29 13:28:35 +0200
committerCarl Hetherington <cth@carlh.net>2026-04-01 23:43:00 +0200
commit1252940b0be76e0cd8f6995a4967d04b65c1e599 (patch)
tree8bd37c288a9484407c9719d5e7ca4f6200eb65eb /src/verify.cc
parentcd929c438d5e727a78027607fa0c047b26e30642 (diff)
INVALID_DURATION: note -> asset_id.
Diffstat (limited to 'src/verify.cc')
-rw-r--r--src/verify.cc4
1 files changed, 2 insertions, 2 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: