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());
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<StringTextFileContent> 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 ();