projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d4f3df5
)
Remove possibly-dubious reuse of a single content object.
author
Carl Hetherington
<cth@carlh.net>
Mon, 14 Oct 2019 13:59:48 +0000
(15:59 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 14 Oct 2019 13:59:48 +0000
(15:59 +0200)
test/srt_subtitle_test.cc
patch
|
blob
|
history
diff --git
a/test/srt_subtitle_test.cc
b/test/srt_subtitle_test.cc
index 0c1f0716166eff0c0a1a9265ab1e736bb3195563..f2d6373926749a01226a5aa25d177c572b5c9d07 100644
(file)
--- 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);
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());
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 ();
film->make_dcp ();
BOOST_REQUIRE (!wait_for_jobs());
film->write_metadata ();