diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-06-28 21:49:44 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-08-17 12:57:31 +0200 |
| commit | a5adc9221d0af15f345cd3dbc76f37ee47fe65d5 (patch) | |
| tree | 0c53851f161fa38d6d7a081ba3de1fa030048ed2 /src/verify.cc | |
| parent | 8e43142645252daeeaccbad7b9f3ed746c4b2382 (diff) | |
Subtitle{,String,Image} -> Text{,String,Image}.
Diffstat (limited to 'src/verify.cc')
| -rw-r--r-- | src/verify.cc | 8 |
1 files changed, 4 insertions, 4 deletions
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<const InteropTextAsset> 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<shared_ptr<Event>> events; - auto position = [](shared_ptr<const SubtitleString> sub) { + auto position = [](shared_ptr<const TextString> 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<const SubtitleString>(j); + for (auto j: asset->texts()) { + auto text = dynamic_pointer_cast<const TextString>(j); if (text) { auto in = make_shared<Event>(text->in(), position(text), text->text().length()); events.push_back(in); |
