summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-03-29 17:09:43 +0200
committerCarl Hetherington <cth@carlh.net>2026-04-01 23:43:00 +0200
commit81215b312016ef1e947e92675bea176be05f168d (patch)
tree1166bf3a26072405d3fb7cc15819ccbd5cc625ea /src
parent53a3e519faeb354934c535f933014cc60ccc3ea4 (diff)
VALID_CPL_ANNOTATION_TEXT: note -> annotation_text.
Diffstat (limited to 'src')
-rw-r--r--src/verify.cc4
-rw-r--r--src/verify.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/verify.cc b/src/verify.cc
index b42fdbb7..d4cd4b3f 100644
--- a/src/verify.cc
+++ b/src/verify.cc
@@ -1593,7 +1593,7 @@ verify_cpl(Context& context, shared_ptr<const CPL> cpl)
} else if (cpl->annotation_text().get() != cpl->content_title_text()) {
context.add_note(VerificationNote::Code::MISMATCHED_CPL_ANNOTATION_TEXT, cpl->file().get());
} else {
- context.add_note(VerificationNote::Code::VALID_CPL_ANNOTATION_TEXT, cpl->annotation_text().get());
+ context.add_note(VerificationNote(VerificationNote::Code::VALID_CPL_ANNOTATION_TEXT).set_annotation_text(cpl->annotation_text().get()));
}
}
@@ -2066,7 +2066,7 @@ dcp::note_to_string(VerificationNote note, function<string (string)> process_str
case VerificationNote::Code::MISMATCHED_CPL_ANNOTATION_TEXT:
return compose("The CPL %1 has an <AnnotationText> which differs from its <ContentTitleText>.", note.cpl_id().get());
case VerificationNote::Code::VALID_CPL_ANNOTATION_TEXT:
- return compose("Valid CPL annotation text %1", note.note().get());
+ return compose("Valid CPL annotation text %1", *note.annotation_text());
case VerificationNote::Code::MISMATCHED_ASSET_DURATION:
return process_string("All assets in a reel do not have the same duration.");
case VerificationNote::Code::MISSING_MAIN_SUBTITLE_FROM_SOME_REELS:
diff --git a/src/verify.h b/src/verify.h
index 04640844..334cea5c 100644
--- a/src/verify.h
+++ b/src/verify.h
@@ -307,7 +307,9 @@ public:
* file contains the CPL filename
*/
MISMATCHED_CPL_ANNOTATION_TEXT,
- /** A CPL has an annotation text which matches the _<ContentTitleText>_ */
+ /** A CPL has an annotation text which matches the _<ContentTitleText>_
+ * annotation_text contains the annotation text.
+ */
VALID_CPL_ANNOTATION_TEXT,
/** At least one asset in a reel does not have the same duration as the others.
* reel_index contains the reel index (starting from 0)