projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
swaroop: set controls to 'stopped' when a playlist finishes.
[dcpomatic.git]
/
test
/
butler_test.cc
diff --git
a/test/butler_test.cc
b/test/butler_test.cc
index d1741262b139fd06f004e278255c0a6ee6dd860f..cc28412689937c4db139ffa0fb2f19b6f33dbe69 100644
(file)
--- a/
test/butler_test.cc
+++ b/
test/butler_test.cc
@@
-29,6
+29,7
@@
#include <boost/test/unit_test.hpp>
using boost::shared_ptr;
#include <boost/test/unit_test.hpp>
using boost::shared_ptr;
+using namespace dcpomatic;
BOOST_AUTO_TEST_CASE (butler_test1)
{
BOOST_AUTO_TEST_CASE (butler_test1)
{
@@
-37,9
+38,9
@@
BOOST_AUTO_TEST_CASE (butler_test1)
film->set_name ("butler_test1");
film->set_container (Ratio::from_id ("185"));
film->set_name ("butler_test1");
film->set_container (Ratio::from_id ("185"));
- shared_ptr<Content> video = content_factory(
film,
"test/data/flat_red.png").front ();
+ shared_ptr<Content> video = content_factory("test/data/flat_red.png").front ();
film->examine_and_add_content (video);
film->examine_and_add_content (video);
- shared_ptr<Content> audio = content_factory(
film,
"test/data/staircase.wav").front ();
+ shared_ptr<Content> audio = content_factory("test/data/staircase.wav").front ();
film->examine_and_add_content (audio);
BOOST_REQUIRE (!wait_for_jobs ());
film->examine_and_add_content (audio);
BOOST_REQUIRE (!wait_for_jobs ());
@@
-51,7
+52,7
@@
BOOST_AUTO_TEST_CASE (butler_test1)
map.set (i, i, 1);
}
map.set (i, i, 1);
}
- Butler butler (shared_ptr<Player>(new Player(film, film->playlist())),
film->log(), map, 6
);
+ Butler butler (shared_ptr<Player>(new Player(film, film->playlist())),
map, 6, bind(&PlayerVideo::force, _1, AV_PIX_FMT_RGB24), false, false
);
BOOST_CHECK (butler.get_video().second == DCPTime());
BOOST_CHECK (butler.get_video().second == DCPTime::from_frames(1, 24));
BOOST_CHECK (butler.get_video().second == DCPTime());
BOOST_CHECK (butler.get_video().second == DCPTime::from_frames(1, 24));