diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-10-14 15:59:48 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-10-14 15:59:48 +0200 |
| commit | 95b4b05e401a88b9a9e98d73d1a5127ec5edbb4a (patch) | |
| tree | b8b5340c97f7e2da46bd70c006b39343d7d5d66d /test | |
| parent | d4f3df54c143b4d99dc06765208b62105f0cdca1 (diff) | |
Remove possibly-dubious reuse of a single content object.
Diffstat (limited to 'test')
| -rw-r--r-- | test/srt_subtitle_test.cc | 6 |
1 files changed, 5 insertions, 1 deletions
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<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 (); |
