X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=test%2Fbutler_test.cc;h=7fd5ea57113bdb43135b281000a86204b3140284;hp=0422b89ad45af1a834704332497292a23ea1e620;hb=6d686ea45f5cd01a0d11f92a903ac77779ad8562;hpb=4f9314a311de379b105741273a15821da62a75cc diff --git a/test/butler_test.cc b/test/butler_test.cc index 0422b89ad..7fd5ea571 100644 --- a/test/butler_test.cc +++ b/test/butler_test.cc @@ -60,7 +60,18 @@ BOOST_AUTO_TEST_CASE (butler_test1) map.set (i, i, 1); } - Butler butler (film, make_shared(film, Image::Alignment::COMPACT), map, 6, boost::bind(&PlayerVideo::force, AV_PIX_FMT_RGB24), VideoRange::FULL, Image::Alignment::COMPACT, false, false); + Butler butler ( + film, + make_shared(film, Image::Alignment::COMPACT), + map, + 6, + boost::bind(&PlayerVideo::force, AV_PIX_FMT_RGB24), + VideoRange::FULL, + Image::Alignment::COMPACT, + false, + false, + Butler::Audio::ENABLED + ); BOOST_CHECK (butler.get_video(Butler::Behaviour::BLOCKING, 0).second == DCPTime()); BOOST_CHECK (butler.get_video(Butler::Behaviour::BLOCKING, 0).second == DCPTime::from_frames(1, 24)); @@ -95,7 +106,16 @@ BOOST_AUTO_TEST_CASE (butler_test2) } Butler butler ( - film, make_shared(film, Image::Alignment::COMPACT), map, 6, boost::bind(&PlayerVideo::force, AV_PIX_FMT_RGB24), VideoRange::FULL, Image::Alignment::COMPACT, false, false + film, + make_shared(film, Image::Alignment::COMPACT), + map, + 6, + boost::bind(&PlayerVideo::force, AV_PIX_FMT_RGB24), + VideoRange::FULL, + Image::Alignment::COMPACT, + false, + false, + Butler::Audio::ENABLED ); int const audio_frames_per_video_frame = 48000 / 25;