diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-08-28 23:34:56 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-08-29 11:58:06 +0100 |
| commit | 1db0293ad36605da9ca8daa8736ef581f4f6a34e (patch) | |
| tree | fb613032d7f8a1712cf10f99ebbf6215e4145c5a /test | |
| parent | ec97893127a2d59871d92c9e658b6b1ab3100b40 (diff) | |
Basics of splitting CCAP streams into different assets.
Diffstat (limited to 'test')
| -rw-r--r-- | test/closed_caption_test.cc | 1 | ||||
| -rw-r--r-- | test/player_test.cc | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/test/closed_caption_test.cc b/test/closed_caption_test.cc index 4074f8371..35abf1b02 100644 --- a/test/closed_caption_test.cc +++ b/test/closed_caption_test.cc @@ -81,5 +81,6 @@ BOOST_AUTO_TEST_CASE (closed_caption_test2) BOOST_REQUIRE_EQUAL (check.cpls().size(), 1); BOOST_REQUIRE_EQUAL (check.cpls().front()->reels().size(), 1); + std::cout << !check.cpls().front()->reels().front()->closed_captions().size() << "\n"; BOOST_REQUIRE_EQUAL (!check.cpls().front()->reels().front()->closed_captions().size(), 3); } diff --git a/test/player_test.cc b/test/player_test.cc index 605f3bddd..0fe1d953b 100644 --- a/test/player_test.cc +++ b/test/player_test.cc @@ -286,15 +286,17 @@ BOOST_AUTO_TEST_CASE (player_trim_test) struct Sub { PlayerText text; TextType type; + optional<DCPTextTrack> track; DCPTimePeriod period; }; static void -store (list<Sub>* out, PlayerText text, TextType type, DCPTimePeriod period) +store (list<Sub>* out, PlayerText text, TextType type, optional<DCPTextTrack> track, DCPTimePeriod period) { Sub s; s.text = text; s.type = type; + s.track = track; s.period = period; out->push_back (s); } @@ -316,7 +318,7 @@ BOOST_AUTO_TEST_CASE (player_ignore_video_and_audio_test) player->set_ignore_audio (); list<Sub> out; - player->Text.connect (bind (&store, &out, _1, _2, _3)); + player->Text.connect (bind (&store, &out, _1, _2, _3, _4)); while (!player->pass ()) {} BOOST_CHECK_EQUAL (out.size(), 6); |
