From 95b4b05e401a88b9a9e98d73d1a5127ec5edbb4a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 14 Oct 2019 15:59:48 +0200 Subject: [PATCH] Remove possibly-dubious reuse of a single content object. --- test/srt_subtitle_test.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/srt_subtitle_test.cc b/test/srt_subtitle_test.cc index 0c1f07161..f2d637392 100644 --- a/test/srt_subtitle_test.cc +++ b/test/srt_subtitle_test.cc @@ -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 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 (); -- 2.30.2