From a5adc9221d0af15f345cd3dbc76f37ee47fe65d5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 28 Jun 2024 21:49:44 +0200 Subject: Subtitle{,String,Image} -> Text{,String,Image}. --- src/verify.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/verify.cc') diff --git a/src/verify.cc b/src/verify.cc index ee20e106..9abda0ff 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -803,7 +803,7 @@ verify_smpte_timed_text_asset ( void verify_interop_text_asset(Context& context, shared_ptr asset) { - if (asset->subtitles().empty()) { + if (asset->texts().empty()) { context.error(VerificationNote::Code::MISSING_SUBTITLE, asset->id(), asset->file().get()); } auto const unresolved = asset->unresolved_fonts(); @@ -1230,7 +1230,7 @@ dcp::verify_text_lines_and_characters( vector> events; - auto position = [](shared_ptr sub) { + auto position = [](shared_ptr sub) { switch (sub->v_align()) { case VAlign::TOP: return lrintf(sub->v_position() * 100); @@ -1244,8 +1244,8 @@ dcp::verify_text_lines_and_characters( }; /* Make a list of "subtitle starts" and "subtitle ends" events */ - for (auto j: asset->subtitles()) { - auto text = dynamic_pointer_cast(j); + for (auto j: asset->texts()) { + auto text = dynamic_pointer_cast(j); if (text) { auto in = make_shared(text->in(), position(text), text->text().length()); events.push_back(in); -- cgit v1.2.3