Fix unreliable test.
[dcpomatic.git] / test / vf_test.cc
index 32e7ae431c90062d88c877af76b62a68ccad0f80..3705635c2f2f018b6c31ea96d97b93ab2657c444 100644 (file)
@@ -180,7 +180,7 @@ BOOST_AUTO_TEST_CASE (vf_test3)
        vf->set_reel_type (ReelType::BY_VIDEO_CONTENT);
        auto dcp = make_shared<DCPContent>(ov->dir(ov->dcp_name()));
        BOOST_REQUIRE (dcp);
-       dcp->set_trim_start (ContentTime::from_seconds (1));
+       dcp->set_trim_start(vf, ContentTime::from_seconds (1));
        dcp->set_trim_end (ContentTime::from_seconds (1));
        vf->examine_and_add_content (dcp);
        BOOST_REQUIRE (!wait_for_jobs());
@@ -392,7 +392,7 @@ BOOST_AUTO_TEST_CASE (test_vf_with_trimmed_multi_reel_dcp)
        vf->set_reel_type(ReelType::BY_VIDEO_CONTENT);
        vf_dcp->set_reference_video(true);
        vf_dcp->set_reference_audio(true);
-       vf_dcp->set_trim_start(ContentTime::from_seconds(10));
+       vf_dcp->set_trim_start(vf, ContentTime::from_seconds(10));
        vf_dcp->set_position(vf, DCPTime::from_seconds(10));
        make_and_verify_dcp (vf, { dcp::VerificationNote::Code::EXTERNAL_ASSET });
 }