summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-07-15 02:20:36 +0200
committerCarl Hetherington <cth@carlh.net>2025-07-15 18:02:50 +0200
commitde77e42f106342e1668e8948e28d6974ef44b61c (patch)
treee22c856264c78d9cc7ed62aa6d31dd4fd516ebe1 /test
parent847daf7ec0f741eb6d50638c2096743ee731634c (diff)
Don't process unnecessary video frame rate changes.
This inadvertently fixes a bug where multiple pieces of caption content would be added to the project sequentially, but then immediately re-arranged to be at the same time.
Diffstat (limited to 'test')
-rw-r--r--test/vf_test.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/vf_test.cc b/test/vf_test.cc
index 33e33f4be..61024982a 100644
--- a/test/vf_test.cc
+++ b/test/vf_test.cc
@@ -387,6 +387,7 @@ BOOST_AUTO_TEST_CASE(test_referencing_ov_with_subs_when_adding_ccaps)
auto ov_dcp = make_shared<DCPContent>(ov->dir(ov->dcp_name(false)));
auto vf = new_test_film(name + "_vf", { ov_dcp, ccaps });
ccaps->text[0]->set_type(TextType::CLOSED_CAPTION);
+ ccaps->set_position(vf, dcpomatic::DCPTime());
string why_not;
BOOST_CHECK(ov_dcp->can_reference_text(vf, TextType::OPEN_SUBTITLE, why_not));
@@ -414,6 +415,7 @@ BOOST_AUTO_TEST_CASE(test_duplicate_font_id_in_vf)
ov_dcp->set_reference_video(true);
ov_dcp->text[0]->set_use(true);
ccaps->text[0]->set_type(TextType::CLOSED_CAPTION);
+ ccaps->set_position(vf, dcpomatic::DCPTime());
string why_not;
BOOST_CHECK_MESSAGE(ov_dcp->can_reference_text(vf, TextType::OPEN_SUBTITLE, why_not), why_not);
ov_dcp->set_reference_text(TextType::OPEN_SUBTITLE, true);
@@ -566,6 +568,7 @@ BOOST_AUTO_TEST_CASE(vf_subs_get_font_from_ov)
vf->set_reel_type(ReelType::BY_VIDEO_CONTENT);
subs2->text[0]->set_language(dcp::LanguageTag("de"));
subs2->text[0]->get_font("")->set_file("test/data/Inconsolata-VF.ttf");
+ subs2->set_position(vf, dcpomatic::DCPTime());
ov_dcp->set_reference_video(true);
ov_dcp->set_reference_audio(true);