X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fblack_fill_test.cc;h=a7e44bdfbd34f3360f5460bcc612b8562de70004;hb=2e504b33eb9f38cac629ad31b7c107fb0cf5efda;hp=9e8aa381bbd0cb0832006fe2a7d6108b71699bac;hpb=ef4cd174472dc1c4694d4451dc60b9292c60666b;p=dcpomatic.git diff --git a/test/black_fill_test.cc b/test/black_fill_test.cc index 9e8aa381b..a7e44bdfb 100644 --- a/test/black_fill_test.cc +++ b/test/black_fill_test.cc @@ -38,18 +38,18 @@ BOOST_AUTO_TEST_CASE (black_fill_test) film->set_container (Ratio::from_id ("185")); film->set_sequence_video (false); shared_ptr contentA (new ImageContent (film, "test/data/simple_testcard_640x480.png")); - contentA->set_ratio (Ratio::from_id ("185")); + contentA->set_scale (VideoContentScale (Ratio::from_id ("185"))); shared_ptr contentB (new ImageContent (film, "test/data/simple_testcard_640x480.png")); - contentB->set_ratio (Ratio::from_id ("185")); + contentB->set_scale (VideoContentScale (Ratio::from_id ("185"))); film->examine_and_add_content (contentA); film->examine_and_add_content (contentB); wait_for_jobs (); - contentA->set_video_length (3); - contentA->set_position (film->video_frames_to_time (2)); - contentB->set_video_length (1); - contentB->set_position (film->video_frames_to_time (7)); + contentA->set_video_length (ContentTime::from_frames (3, 24)); + contentA->set_position (DCPTime::from_frames (2, film->video_frame_rate ())); + contentB->set_video_length (ContentTime::from_frames (1, 24)); + contentB->set_position (DCPTime::from_frames (7, film->video_frame_rate ())); film->make_dcp ();