diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-07-15 03:36:59 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-07-15 18:03:57 +0200 |
| commit | 21415bdb69a99c4fc36cf4b5e5160a171bb1cad4 (patch) | |
| tree | 46265de6587585d292ac4c97267327af0c359c1c /test/torture_test.cc | |
| parent | 6207d271effad4e691a5155ccdad083e03b010bc (diff) | |
Change Film::examine_and_add_content to take a vector of content.
Diffstat (limited to 'test/torture_test.cc')
| -rw-r--r-- | test/torture_test.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/torture_test.cc b/test/torture_test.cc index e2325955b..f03f6d4e5 100644 --- a/test/torture_test.cc +++ b/test/torture_test.cc @@ -62,7 +62,7 @@ BOOST_AUTO_TEST_CASE (torture_test1) /* Staircase at an offset of 2000 samples, trimmed both start and end, with a gain of exactly 2 (linear) */ auto staircase = content_factory("test/data/staircase.wav")[0]; - film->examine_and_add_content (staircase); + film->examine_and_add_content({staircase}); BOOST_REQUIRE (!wait_for_jobs()); staircase->set_position (film, DCPTime::from_frames(2000, film->audio_frame_rate())); staircase->set_trim_start(film, ContentTime::from_frames(12, 48000)); @@ -71,7 +71,7 @@ BOOST_AUTO_TEST_CASE (torture_test1) /* And again at an offset of 50000 samples, trimmed both start and end, with a gain of exactly 2 (linear) */ staircase = content_factory("test/data/staircase.wav")[0]; - film->examine_and_add_content (staircase); + film->examine_and_add_content({staircase}); BOOST_REQUIRE (!wait_for_jobs()); staircase->set_position (film, DCPTime::from_frames(50000, film->audio_frame_rate())); staircase->set_trim_start(film, ContentTime::from_frames(12, 48000)); @@ -80,7 +80,7 @@ BOOST_AUTO_TEST_CASE (torture_test1) /* 1s of red at 5s in */ auto red = content_factory("test/data/flat_red.png")[0]; - film->examine_and_add_content (red); + film->examine_and_add_content({red}); BOOST_REQUIRE (!wait_for_jobs()); red->set_position (film, DCPTime::from_seconds(5)); red->video->set_length (24); |
