summaryrefslogtreecommitdiff
path: root/src/wx/verify_dcp_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-05-11 13:50:57 +0200
committerCarl Hetherington <cth@carlh.net>2023-05-12 22:11:06 +0200
commit83d63bb331190db4372de4d0aaf8413c51f1eee4 (patch)
tree1fed31a4b045fb1d586b2db445474d2d923b7845 /src/wx/verify_dcp_dialog.cc
parentff02c27b53222592e394d7cde1c904b27a211488 (diff)
Handle fonts for ccaps coming from DCP content (#2525).
Not dealing with them calls all sort of chaos as described in the bug report.
Diffstat (limited to 'src/wx/verify_dcp_dialog.cc')
-rw-r--r--src/wx/verify_dcp_dialog.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wx/verify_dcp_dialog.cc b/src/wx/verify_dcp_dialog.cc
index 07e3589e5..b3e229087 100644
--- a/src/wx/verify_dcp_dialog.cc
+++ b/src/wx/verify_dcp_dialog.cc
@@ -106,6 +106,9 @@ VerifyDCPDialog::VerifyDCPDialog (wxWindow* parent, shared_ptr<VerifyDCPJob> job
if (note.size()) {
message.Replace("%size", std_to_wx(dcp::raw_convert<string>(note.size().get())));
}
+ if (note.id()) {
+ message.Replace("%id", std_to_wx(note.id().get()));
+ }
add_bullet (note.type(), message);
counts[note.type()]++;
};
@@ -419,6 +422,9 @@ VerifyDCPDialog::VerifyDCPDialog (wxWindow* parent, shared_ptr<VerifyDCPJob> job
case dcp::VerificationNote::Code::INCORRECT_SUBTITLE_NAMESPACE_COUNT:
add(i, _("The XML in the subtitle asset %n has more than one namespace declaration."));
break;
+ case dcp::VerificationNote::Code::MISSING_LOAD_FONT:
+ add(i, _("A subtitle or closed caption refers to a font with ID %id that does not have a corresponding <LoadFont> node."));
+ break;
}
}