Basics of multiple captions per content so that DCPContent can
[dcpomatic.git] / test / player_test.cc
index 510083236f294cc1e56a0ec4dc5de7715d6b0959..bc4af970ea2c1122f6d04c3410dc1ea0e9e9fb39 100644 (file)
@@ -211,7 +211,7 @@ BOOST_AUTO_TEST_CASE (player_seek_test)
        shared_ptr<DCPContent> dcp (new DCPContent (film, private_data / "awkward_subs"));
        film->examine_and_add_content (dcp, true);
        BOOST_REQUIRE (!wait_for_jobs ());
-       dcp->caption->set_use (true);
+       dcp->only_caption()->set_use (true);
 
        shared_ptr<Player> player (new Player (film, film->playlist()));
        player->set_fast ();
@@ -242,7 +242,7 @@ BOOST_AUTO_TEST_CASE (player_seek_test2)
        shared_ptr<DCPContent> dcp (new DCPContent (film, private_data / "awkward_subs2"));
        film->examine_and_add_content (dcp, true);
        BOOST_REQUIRE (!wait_for_jobs ());
-       dcp->caption->set_use (true);
+       dcp->only_caption()->set_use (true);
 
        shared_ptr<Player> player (new Player (film, film->playlist()));
        player->set_fast ();