summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-03-19 21:37:19 +0000
committerCarl Hetherington <cth@carlh.net>2019-05-10 23:43:42 +0100
commit5e3ee55930334c7e0a5a398918794bff955383d4 (patch)
tree91efb4296951c5730577b161b4e5330e11630e98 /test
parent7f97799c4cfea1544ef85a8a421c506605dba204 (diff)
Update for libdcp API changes.
Diffstat (limited to 'test')
-rw-r--r--test/vf_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/vf_test.cc b/test/vf_test.cc
index b82c3c889..6862a1204 100644
--- a/test/vf_test.cc
+++ b/test/vf_test.cc
@@ -188,11 +188,11 @@ BOOST_AUTO_TEST_CASE (vf_test3)
BOOST_REQUIRE_EQUAL (vf_c.cpls().size(), 1);
BOOST_REQUIRE_EQUAL (vf_c.cpls().front()->reels().size(), 1);
BOOST_REQUIRE (vf_c.cpls().front()->reels().front()->main_picture());
- BOOST_CHECK_EQUAL (vf_c.cpls().front()->reels().front()->main_picture()->entry_point(), 24);
- BOOST_CHECK_EQUAL (vf_c.cpls().front()->reels().front()->main_picture()->duration(), 72);
+ BOOST_CHECK_EQUAL (vf_c.cpls().front()->reels().front()->main_picture()->entry_point().get_value_or(0), 24);
+ BOOST_CHECK_EQUAL (vf_c.cpls().front()->reels().front()->main_picture()->actual_duration(), 72);
BOOST_REQUIRE (vf_c.cpls().front()->reels().front()->main_sound());
- BOOST_CHECK_EQUAL (vf_c.cpls().front()->reels().front()->main_sound()->entry_point(), 24);
- BOOST_CHECK_EQUAL (vf_c.cpls().front()->reels().front()->main_sound()->duration(), 72);
+ BOOST_CHECK_EQUAL (vf_c.cpls().front()->reels().front()->main_sound()->entry_point().get_value_or(0), 24);
+ BOOST_CHECK_EQUAL (vf_c.cpls().front()->reels().front()->main_sound()->actual_duration(), 72);
}
/** Make a OV with video and audio and a VF referencing the OV and adding some more video */