X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fsubtitle_reel_number_test.cc;h=0726ee2e418bcb76310669b52a0eba07c2e50b09;hb=3f9b394d57e750624d361f5daae6db77079f862a;hp=3eede3a8845e66fcea7c74d728b1f755fe8f5d18;hpb=563ffc8c14b9db24c828c85c6590d0ece9ed19bc;p=dcpomatic.git diff --git a/test/subtitle_reel_number_test.cc b/test/subtitle_reel_number_test.cc index 3eede3a88..0726ee2e4 100644 --- a/test/subtitle_reel_number_test.cc +++ b/test/subtitle_reel_number_test.cc @@ -18,10 +18,10 @@ */ -#include "lib/text_subtitle_content.h" +#include "lib/string_text_file_content.h" #include "lib/film.h" #include "lib/ratio.h" -#include "lib/subtitle_content.h" +#include "lib/text_content.h" #include "lib/dcp_content_type.h" #include "test.h" #include @@ -43,11 +43,11 @@ BOOST_AUTO_TEST_CASE (subtitle_reel_number_test) film->set_container (Ratio::from_id ("185")); film->set_dcp_content_type (DCPContentType::from_isdcf_name ("TLR")); film->set_name ("frobozz"); - shared_ptr content (new TextSubtitleContent (film, "test/data/subrip5.srt")); + shared_ptr content (new StringTextFileContent("test/data/subrip5.srt")); film->examine_and_add_content (content); BOOST_REQUIRE (!wait_for_jobs ()); - content->subtitle->set_use (true); - content->subtitle->set_burn (false); + content->only_text()->set_use (true); + content->only_text()->set_burn (false); film->set_reel_type (REELTYPE_BY_LENGTH); film->set_interop (true); film->set_reel_length (1024 * 1024 * 512);