X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fxml_subtitle_test.cc;h=0d73847976dccb4852d4600e2f75df10b00b083b;hb=4b7fab6e3dbb7cae32a2e0b66f1b6ca275367126;hp=554591b9213b20be703b9050003ef20f8087dcb7;hpb=80400212e939dc2f3b987cb6df57709929aa5178;p=dcpomatic.git diff --git a/test/xml_subtitle_test.cc b/test/xml_subtitle_test.cc index 554591b92..0d7384797 100644 --- a/test/xml_subtitle_test.cc +++ b/test/xml_subtitle_test.cc @@ -50,3 +50,26 @@ BOOST_AUTO_TEST_CASE (xml_subtitle_test) /* Should be blank video with MXF subtitles */ check_dcp ("test/data/xml_subtitle_test", film->dir (film->dcp_name ())); } + +/** Check the subtitle XML when there are two subtitle files in the project */ +BOOST_AUTO_TEST_CASE (xml_subtitle_test2) +{ + shared_ptr film = new_test_film ("xml_subtitle_test2"); + film->set_container (Ratio::from_id ("185")); + film->set_dcp_content_type (DCPContentType::from_isdcf_name ("TLR")); + film->set_name ("frobozz"); + film->set_interop (true); + film->set_sequence (false); + shared_ptr content (new TextSubtitleContent (film, "test/data/subrip2.srt")); + content->set_use_subtitles (true); + content->set_burn_subtitles (false); + film->examine_and_add_content (content); + film->examine_and_add_content (content); + wait_for_jobs (); + content->set_position (DCPTime (0)); + film->make_dcp (); + wait_for_jobs (); + film->write_metadata (); + + check_dcp ("test/data/xml_subtitle_test2", film->dir (film->dcp_name ())); +}