X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fplay_test.cc;h=dcf8e7f6dd323e264ecc5d8d1197f4956355ea77;hb=ad7dc5ef0bd6f70c32600329e135d87b84604a3f;hp=92d1a8dce82767d91a16043b8716048fd7b1fb4a;hpb=d755a06a076f10d1f44bd66fd7b0ea0e0b02a1c0;p=dcpomatic.git diff --git a/test/play_test.cc b/test/play_test.cc index 92d1a8dce..dcf8e7f6d 100644 --- a/test/play_test.cc +++ b/test/play_test.cc @@ -51,7 +51,7 @@ public: { Video v; v.content = _player->_last_video; - v.image = i->image (); + v.image = i->image (PIX_FMT_RGB24); v.time = t; _queue.push_front (v); } @@ -82,7 +82,7 @@ private: BOOST_AUTO_TEST_CASE (play_test) { shared_ptr film = new_test_film ("play_test"); - film->set_dcp_content_type (DCPContentType::from_dci_name ("FTR")); + film->set_dcp_content_type (DCPContentType::from_isdcf_name ("FTR")); film->set_container (Ratio::from_id ("185")); film->set_name ("play_test"); @@ -105,7 +105,7 @@ BOOST_AUTO_TEST_CASE (play_test) /* A is 16 frames long at 25 fps */ BOOST_CHECK_EQUAL (B->position(), 16 * TIME_HZ / 25); - shared_ptr player = film->make_player (); + shared_ptr player (new Player (film)); PlayerWrapper wrap (player); /* Seek and audio don't get on at the moment */ player->disable_audio ();