summaryrefslogtreecommitdiff
path: root/test/vf_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-03-19 21:37:19 +0000
committerCarl Hetherington <cth@carlh.net>2019-03-26 14:03:24 +0000
commitbe33fc16eefc1d826f6b5611392f4f0614e01c1a (patch)
tree5556b3cbcfa8d5566692fcd87e42182aba93b455 /test/vf_test.cc
parent3bc51f795afed3c7e5747207112b4d50e6537226 (diff)
Update for libdcp API changes.
Diffstat (limited to 'test/vf_test.cc')
-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 b36cc6567..87dd598d6 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 */