diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-02 14:19:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-02 14:19:21 +0100 |
| commit | 712f8144f1992364d79a80b2b586248423f7ac11 (patch) | |
| tree | 09a26e5ae303a3ae3e9cc44d0da0fbb3ae7c455a /test | |
| parent | bc9458cbe39a24d22c199c82efab524208dc347d (diff) | |
Rearrange Player subtitle handling a bit.
Diffstat (limited to 'test')
| -rw-r--r-- | test/subrip_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/subrip_test.cc b/test/subrip_test.cc index 9479e657e..1b207c3c6 100644 --- a/test/subrip_test.cc +++ b/test/subrip_test.cc @@ -190,14 +190,14 @@ BOOST_AUTO_TEST_CASE (subrip_render_test) BOOST_CHECK_EQUAL (content->full_length(), DCPTime::from_seconds ((3 * 60) + 56.471)); shared_ptr<SubRipDecoder> decoder (new SubRipDecoder (content)); - list<shared_ptr<ContentTextSubtitle> > cts = decoder->get_text_subtitles ( + list<ContentTextSubtitle> cts = decoder->get_text_subtitles ( ContentTimePeriod ( ContentTime::from_seconds (109), ContentTime::from_seconds (110) ) ); BOOST_CHECK_EQUAL (cts.size(), 1); - PositionImage image = render_subtitles (cts.front()->subs, dcp::Size (1998, 1080)); + PositionImage image = render_subtitles (cts.front().subs, dcp::Size (1998, 1080)); write_image (image.image, "build/test/subrip_render_test.png"); check_file ("build/test/subrip_render_test.png", "test/data/subrip_render_test.png"); } |
