summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-03-29 15:07:26 +0200
committerCarl Hetherington <cth@carlh.net>2026-04-01 23:43:00 +0200
commit6ebb73004a5568b19228ff699cd68aadc8abbcff (patch)
treef8c8193a427d56dfe3d0f9462655c253b516f5d3 /src
parentd47514ac74ec18cd33481e54b459c4af542bbc19 (diff)
VALID_RELEASE_TERRITORY: note -> territory.
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 7d87ba1f..2608ab77 100644
--- a/src/verify.cc
+++ b/src/verify.cc
@@ -1573,7 +1573,7 @@ verify_cpl(Context& context, shared_ptr<const CPL> 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<string (string)> 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 "<width>x<height>"