projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix assertion failure on making a VF, in certain circumstances.
[dcpomatic.git]
/
test
/
srt_subtitle_test.cc
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 ();