Fix build.
[dcpomatic.git] / test / scaling_test.cc
index e37b609495d2a9f085643e762dd94a5b477aef07..d642271c27088bb39254e0bc6a1031e4e51d5541 100644 (file)
@@ -33,13 +33,12 @@ using boost::shared_ptr;
 
 static void scaling_test_for (shared_ptr<Film> film, shared_ptr<VideoContent> content, string image, string container)
 {
+       content->set_scale (VideoContentScale (Ratio::from_id (image)));
        film->set_container (Ratio::from_id (container));
        film->make_dcp ();
 
        wait_for_jobs ();
 
-       content->set_scale (VideoContentScale (Ratio::from_id (image)));
-
        boost::filesystem::path ref;
        ref = "test";
        ref /= "data";
@@ -61,7 +60,7 @@ BOOST_AUTO_TEST_CASE (scaling_test)
        film->set_name ("scaling_test");
        shared_ptr<ImageContent> imc (new ImageContent (film, "test/data/simple_testcard_640x480.png"));
 
-       film->examine_and_add_content (imc);
+       film->examine_and_add_content (imc, true);
 
        wait_for_jobs ();