X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fsrt_subtitle_test.cc;h=f2d6373926749a01226a5aa25d177c572b5c9d07;hb=392d675f5799671abbcf1a9a47820321bcbdcca2;hp=3064abcc6e5cffd474200d7d27eb24f58130fee8;hpb=6cc7359c1af897f334dab5ba455707ce0c59af9d;p=dcpomatic.git diff --git a/test/srt_subtitle_test.cc b/test/srt_subtitle_test.cc index 3064abcc6..f2d637392 100644 --- a/test/srt_subtitle_test.cc +++ b/test/srt_subtitle_test.cc @@ -76,7 +76,7 @@ BOOST_AUTO_TEST_CASE (srt_subtitle_test2) content->only_text()->set_use (true); content->only_text()->set_burn (false); /* Use test/data/subrip2.srt as if it were a font file */ - content->only_text()->fonts().front()->set_file (FontFiles::NORMAL, "test/data/subrip2.srt"); + content->only_text()->fonts().front()->set_file("test/data/subrip2.srt"); film->make_dcp (); BOOST_REQUIRE (!wait_for_jobs()); @@ -150,9 +150,13 @@ BOOST_AUTO_TEST_CASE (srt_subtitle_test5) content->only_text()->set_use (true); content->only_text()->set_burn (false); film->examine_and_add_content (content); - film->examine_and_add_content (content); + shared_ptr content2 (new StringTextFileContent("test/data/subrip2.srt")); + content2->only_text()->set_use (true); + content2->only_text()->set_burn (false); + film->examine_and_add_content (content2); BOOST_REQUIRE (!wait_for_jobs()); content->set_position (film, DCPTime()); + content2->set_position (film, DCPTime()); film->make_dcp (); BOOST_REQUIRE (!wait_for_jobs()); film->write_metadata ();