From 6ebb73004a5568b19228ff699cd68aadc8abbcff Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 29 Mar 2026 15:07:26 +0200 Subject: VALID_RELEASE_TERRITORY: note -> territory. --- src/verify.cc | 4 ++-- src/verify.h | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/verify.cc b/src/verify.cc index 7d87ba1f..2608ab77 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -1573,7 +1573,7 @@ verify_cpl(Context& context, shared_ptr cpl) } } if (valid) { - context.add_note(VerificationNote::Code::VALID_RELEASE_TERRITORY, terr); + context.add_note(VerificationNote(VerificationNote::Code::VALID_RELEASE_TERRITORY).set_territory(terr)); } } } @@ -2014,7 +2014,7 @@ dcp::note_to_string(VerificationNote note, function process_str case VerificationNote::Code::INVALID_LANGUAGE: return compose("The DCP specifies a language '%1' which does not conform to the RFC 5646 standard.", note.note().get()); case VerificationNote::Code::VALID_RELEASE_TERRITORY: - return compose("Valid release territory %1.", note.note().get()); + return compose("Valid release territory %1.", *note.territory()); case VerificationNote::Code::INVALID_PICTURE_SIZE_IN_PIXELS: return compose("The size %1 of picture asset %2 is not allowed.", note.note().get(), filename()); case VerificationNote::Code::INVALID_PICTURE_FRAME_RATE_FOR_2K: diff --git a/src/verify.h b/src/verify.h index 0abf6c22..ac943f50 100644 --- a/src/verify.h +++ b/src/verify.h @@ -204,7 +204,9 @@ public: * reel_index contains the reel index (starting from 0) */ INVALID_LANGUAGE, - /** A CPL has a valid release territory */ + /** A CPL has a valid release territory + * territory contains the territory + */ VALID_RELEASE_TERRITORY, /** A picture asset does not have one of the required Bv2.1 sizes (in pixels) [Bv2.1_7.1] * note contains the incorrect size as "x" -- cgit v1.2.3