diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-07-09 20:41:10 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-07-11 12:22:11 +0200 |
| commit | b1e22dff981fb86ae04b12bb5a064e61030793a8 (patch) | |
| tree | ffb112f6e3f3311d8669f6a89628bf5f0bc40f2e /test/writer_test.cc | |
| parent | 736d6bf3242a0ba3841cb765e97cf9fee3540460 (diff) | |
Use a vector rather than a list when returning from content_factory().
Diffstat (limited to 'test/writer_test.cc')
| -rw-r--r-- | test/writer_test.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/writer_test.cc b/test/writer_test.cc index e0df0610e..d5cafe1fb 100644 --- a/test/writer_test.cc +++ b/test/writer_test.cc @@ -41,9 +41,9 @@ using std::vector; BOOST_AUTO_TEST_CASE (test_write_odd_amount_of_silence) { - auto content = content_factory("test/data/flat_red.png").front(); - auto film = new_test_film2 ("test_write_odd_amount_of_silence", {content}); - content->video->set_length(24); + auto content = content_factory("test/data/flat_red.png"); + auto film = new_test_film2 ("test_write_odd_amount_of_silence", content); + content[0]->video->set_length(24); auto writer = make_shared<Writer>(film, shared_ptr<Job>()); auto audio = make_shared<AudioBuffers>(6, 48000); @@ -58,7 +58,7 @@ BOOST_AUTO_TEST_CASE (interrupt_writer) auto film = new_test_film2 ("test_interrupt_writer", {}, &cl); - auto content = content_factory("test/data/check_image0.png").front(); + auto content = content_factory("test/data/check_image0.png")[0]; film->examine_and_add_content (content); BOOST_REQUIRE (!wait_for_jobs()); |
