From d6ccf7600d19ad73fab51a8a8ee1a215d5a9e180 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 31 Mar 2026 18:05:14 +0200 Subject: MISSING_SUBTITLE: note -> asset_id. --- src/verify.cc | 4 ++-- src/verify.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/verify.cc b/src/verify.cc index 094567da..22e07b7c 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -748,7 +748,7 @@ void verify_interop_text_asset(Context& context, shared_ptr asset) { if (asset->texts().empty()) { - context.add_note(VerificationNote::Code::MISSING_SUBTITLE, asset->id(), asset->file().get()); + context.add_note(VerificationNote(VerificationNote::Code::MISSING_SUBTITLE, asset->file().get()).set_asset_id(asset->id())); } auto const unresolved = asset->unresolved_fonts(); if (!unresolved.empty()) { @@ -2183,7 +2183,7 @@ dcp::note_to_string(VerificationNote note, function process_str case VerificationNote::Code::DUPLICATE_ASSET_ID_IN_ASSETMAP: return compose("The ASSETMAP %1 has more than one asset with the same ID.", *note.asset_map_id()); case VerificationNote::Code::MISSING_SUBTITLE: - return compose("The subtitle asset %1 has no subtitles.", note.note().get()); + return compose("The subtitle asset %1 has no subtitles.", *note.asset_id()); case VerificationNote::Code::INVALID_SUBTITLE_ISSUE_DATE: return compose(" has an invalid value: %1", note.note().get()); case VerificationNote::Code::MISMATCHED_SOUND_CHANNEL_COUNTS: diff --git a/src/verify.h b/src/verify.h index 2fb6b0ef..d4d066c6 100644 --- a/src/verify.h +++ b/src/verify.h @@ -520,7 +520,7 @@ public: */ DUPLICATE_ASSET_ID_IN_ASSETMAP, /** An Interop subtitle asset has no subtitles - * note contains the asset ID + * asset_id contains the asset ID * file contains the asset filename * reel_index contains the reel index (starting from 0) */ -- cgit v1.2.3