diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-01-13 23:34:35 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-01-15 10:21:59 +0100 |
| commit | db22f81ccce9e1a5f205e6d8b3c0631fc039a173 (patch) | |
| tree | 263c2a28165fe5d3cf03bae25d19cd60b0640bfd /test/hints_test.cc | |
| parent | 7a301e22de2a3c47a81ebc4c9f19b68131b482aa (diff) | |
Fix handling of empty font IDs and default DCP fonts (#2721) (part of #2722).
Previously we used an empty font ID as the default for when a subtitle
has no Font, but in #2721 we saw a DCP with an empty font ID which
raised an assertion (because we'd already added our default font with
the empty ID).
Here we try to fix this (and also make the default font correctly be
that from the first <LoadFont>).
Diffstat (limited to 'test/hints_test.cc')
| -rw-r--r-- | test/hints_test.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/hints_test.cc b/test/hints_test.cc index a989d3aeb..949ba18c0 100644 --- a/test/hints_test.cc +++ b/test/hints_test.cc @@ -198,7 +198,8 @@ BOOST_AUTO_TEST_CASE (hint_subtitle_mxf_too_big) content->text[0]->set_language(dcp::LanguageTag("en-US")); film->examine_and_add_content(content); BOOST_REQUIRE (!wait_for_jobs()); - auto const font = content->text[0]->get_font(String::compose("font_%1", i)); + auto const font = content->text[0]->get_font(String::compose("0_font_%1", i)); + BOOST_REQUIRE(font); font->set_file("build/test/hint_subtitle_mxf_too_big.ttf"); } |
