X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=test%2Foptimise_stills_test.cc;h=d9f8d262a1c17ad0353d018a56aefc3beaca2261;hp=b939d29149fd95c28c20da419ce37cf49d7d514d;hb=54af50c3b8e9082f9751e809d63540c51197a4a1;hpb=4f5845083e94224bcd4de2ff9ed46c68a3673ba3 diff --git a/test/optimise_stills_test.cc b/test/optimise_stills_test.cc index b939d2914..d9f8d262a 100644 --- a/test/optimise_stills_test.cc +++ b/test/optimise_stills_test.cc @@ -28,6 +28,7 @@ #include "lib/dcp_content_type.h" #include "lib/content.h" #include "lib/video_content.h" +#include "lib/dcpomatic_log.h" #include "test.h" #include #include @@ -72,10 +73,11 @@ check (string name, int check_full, int check_repeat) BOOST_AUTO_TEST_CASE (optimise_stills_test1) { shared_ptr film = new_test_film ("optimise_stills_test1"); + dcpomatic_log = film->log (); film->set_container (Ratio::from_id ("185")); film->set_dcp_content_type (DCPContentType::from_isdcf_name ("TLR")); film->set_name ("frobozz"); - shared_ptr content = content_factory(film, "test/data/flat_red.png").front (); + shared_ptr content = content_factory("test/data/flat_red.png").front (); film->examine_and_add_content (content); BOOST_REQUIRE (!wait_for_jobs ()); film->make_dcp (); @@ -88,10 +90,11 @@ BOOST_AUTO_TEST_CASE (optimise_stills_test1) BOOST_AUTO_TEST_CASE (optimise_stills_test2) { shared_ptr film = new_test_film ("optimise_stills_test2"); + dcpomatic_log = film->log (); film->set_container (Ratio::from_id ("185")); film->set_dcp_content_type (DCPContentType::from_isdcf_name ("TLR")); film->set_name ("frobozz"); - shared_ptr content = content_factory(film, "test/data/flat_red.png").front (); + shared_ptr content = content_factory("test/data/flat_red.png").front (); film->examine_and_add_content (content); BOOST_REQUIRE (!wait_for_jobs ()); content->video->set_frame_type (VIDEO_FRAME_TYPE_3D_LEFT_RIGHT);