film->examine_and_add_content (content);
wait_for_jobs ();
- BOOST_CHECK_EQUAL (content->full_length(), DCPTime::from_seconds (2));
+ BOOST_CHECK_EQUAL (content->full_length().get(), DCPTime::from_seconds(2).get());
content->subtitle->set_use (true);
content->subtitle->set_burn (false);
film->examine_and_add_content (content);
wait_for_jobs ();
- shared_ptr<DCPDecoder> decoder (new DCPDecoder (content, film->log(), false));
+ shared_ptr<DCPDecoder> decoder (new DCPDecoder (content, film->log()));
list<ContentTimePeriod> ctp = decoder->text_subtitles_during (
ContentTimePeriod (
);
BOOST_REQUIRE_EQUAL (ctp.size(), 2);
- BOOST_CHECK_EQUAL (ctp.front().from, ContentTime::from_seconds (25 + 12 * 0.04));
- BOOST_CHECK_EQUAL (ctp.front().to, ContentTime::from_seconds (26 + 4 * 0.04));
- BOOST_CHECK_EQUAL (ctp.back().from, ContentTime::from_seconds (25 + 12 * 0.04));
- BOOST_CHECK_EQUAL (ctp.back().to, ContentTime::from_seconds (26 + 4 * 0.04));
+ BOOST_CHECK_EQUAL (ctp.front().from.get(), ContentTime::from_seconds(25 + 12 * 0.04).get());
+ BOOST_CHECK_EQUAL (ctp.front().to.get(), ContentTime::from_seconds(26 + 4 * 0.04).get());
+ BOOST_CHECK_EQUAL (ctp.back().from.get(), ContentTime::from_seconds(25 + 12 * 0.04).get());
+ BOOST_CHECK_EQUAL (ctp.back().to.get(), ContentTime::from_seconds(26 + 4 * 0.04).get());
list<ContentTextSubtitle> subs = decoder->subtitle->get_text (
ContentTimePeriod (