Fix scaling test.
authorCarl Hetherington <cth@carlh.net>
Fri, 21 Nov 2014 09:18:16 +0000 (09:18 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 21 Nov 2014 09:18:16 +0000 (09:18 +0000)
test/scaling_test.cc

index e37b609495d2a9f085643e762dd94a5b477aef07..441af6bf30514ecb2eaaafa58ae7deea3ffdaa16 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)
 {
 
 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 ();
 
        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";
        boost::filesystem::path ref;
        ref = "test";
        ref /= "data";