Remove possibly-dubious reuse of a single content object.
authorCarl Hetherington <cth@carlh.net>
Mon, 14 Oct 2019 13:59:48 +0000 (15:59 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 14 Oct 2019 13:59:48 +0000 (15:59 +0200)
test/srt_subtitle_test.cc

index 0c1f0716166eff0c0a1a9265ab1e736bb3195563..f2d6373926749a01226a5aa25d177c572b5c9d07 100644 (file)
@@ -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<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 ();