X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fempty_caption_test.cc;h=f0449a3ceebc96cff0553c74c61e5b0c1077b932;hb=182b9d2e2feb6545592868606aaf0f0146095481;hp=83f5cce5e34e9f0c18fae9dfcd708045e6bb5552;hpb=689bf63d32a8276477ab12e83bd47a5ff67d3eae;p=dcpomatic.git diff --git a/test/empty_caption_test.cc b/test/empty_caption_test.cc index 83f5cce5e..f0449a3ce 100644 --- a/test/empty_caption_test.cc +++ b/test/empty_caption_test.cc @@ -29,9 +29,9 @@ BOOST_AUTO_TEST_CASE (check_for_no_empty_text_nodes_in_failure_case) { - auto content = content_factory("test/data/empty.srt").front(); - auto film = new_test_film2 ("check_for_no_empty_text_nodes_in_failure_case", {content}); - auto text = content->text.front(); + auto content = content_factory("test/data/empty.srt"); + auto film = new_test_film2 ("check_for_no_empty_text_nodes_in_failure_case", content); + auto text = content[0]->text.front(); text->set_type (TextType::CLOSED_CAPTION); text->set_dcp_track({"English", dcp::LanguageTag("en-GB")});