operator bool on Time is a really bad idea; removed it and fixed lots of bugs.
[dcpomatic.git] / test / play_test.cc
index 5ffc55a8ee8e3b7488044a1319b3da2137d20c8a..690b042d8c32722f78e1c75e5c800e22cc685251 100644 (file)
@@ -89,18 +89,18 @@ BOOST_AUTO_TEST_CASE (play_test)
        film->examine_and_add_content (A);
        wait_for_jobs ();
 
-       BOOST_CHECK_EQUAL (A->video_length(), 16);
+       BOOST_CHECK_EQUAL (A->video_length().frames (24), 16);
 
        shared_ptr<FFmpegContent> B (new FFmpegContent (film, "test/data/red_30.mp4"));
        film->examine_and_add_content (B);
        wait_for_jobs ();
 
-       BOOST_CHECK_EQUAL (B->video_length(), 16);
+       BOOST_CHECK_EQUAL (B->video_length().frames (30), 16);
        
        /* Film should have been set to 25fps */
        BOOST_CHECK_EQUAL (film->video_frame_rate(), 25);
 
-       BOOST_CHECK_EQUAL (A->position(), 0);
+       BOOST_CHECK_EQUAL (A->position(), DCPTime ());
        /* A is 16 frames long at 25 fps */
        BOOST_CHECK_EQUAL (B->position(), DCPTime::from_frames (16, 25));