diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-03-31 22:57:32 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-04-01 23:43:00 +0200 |
| commit | 7e9736d5e07fb3f608ad78c251deb183f2989d5d (patch) | |
| tree | e9207f6b3fa8273e30d08f79d0b8a65bfca44807 /src/verify.cc | |
| parent | a44e4cedc7054cb12979fb0cb188bf6d8545aebf (diff) | |
INCORRECT_SUBTITLE_NAMESPACE_COUNT: note -> asset_id.
Diffstat (limited to 'src/verify.cc')
| -rw-r--r-- | src/verify.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/verify.cc b/src/verify.cc index e1542eaa..057fa84e 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -825,7 +825,7 @@ verify_subtitle_asset(Context& context, shared_ptr<const TextAsset> asset, optio if (interop) { verify_interop_text_asset(context, interop); if (namespace_count(asset, "DCSubtitle") > 1) { - context.add_note(VerificationNote::Code::INCORRECT_SUBTITLE_NAMESPACE_COUNT, asset->id()); + context.add_note(VerificationNote(VerificationNote::Code::INCORRECT_SUBTITLE_NAMESPACE_COUNT).set_asset_id(asset->id())); } } @@ -835,7 +835,7 @@ verify_subtitle_asset(Context& context, shared_ptr<const TextAsset> asset, optio verify_smpte_subtitle_asset(context, smpte); /* This asset may be encrypted and in that case we'll have no raw_xml() */ if (asset->raw_xml() && namespace_count(asset, "SubtitleReel") > 1) { - context.add_note(VerificationNote::Code::INCORRECT_SUBTITLE_NAMESPACE_COUNT, asset->id()); + context.add_note(VerificationNote(VerificationNote::Code::INCORRECT_SUBTITLE_NAMESPACE_COUNT).set_asset_id(asset->id())); } } } @@ -2199,7 +2199,7 @@ dcp::note_to_string(VerificationNote note, function<string (string)> process_str note.frame().get(), note.component().get(), note.size_in_bytes().get() ); case VerificationNote::Code::INCORRECT_SUBTITLE_NAMESPACE_COUNT: - return compose("The XML in the subtitle asset %1 has more than one namespace declaration.", note.note().get()); + return compose("The XML in the subtitle asset %1 has more than one namespace declaration.", *note.asset_id()); case VerificationNote::Code::MISSING_LOAD_FONT_FOR_FONT: return compose("A subtitle or closed caption refers to a font with ID %1 that does not have a corresponding <LoadFont> node", note.load_font_id().get()); case VerificationNote::Code::MISSING_LOAD_FONT: |
