diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-05-04 01:14:12 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-05-04 01:14:12 +0100 |
| commit | 41c4d628f7ef3c9f9b434d34ff099f5fe4de1ae4 (patch) | |
| tree | f912e10cfd99245933ffd3eaa0d39a01aec1daad /test | |
| parent | 09e16aa3acf7878b54a4995a0be79890f26db09f (diff) | |
Port support for MXF-wrapped subtitles from 0.x
Diffstat (limited to 'test')
| -rw-r--r-- | test/subs_in_out.cc | 2 | ||||
| -rw-r--r-- | test/subtitle_tests.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/subs_in_out.cc b/test/subs_in_out.cc index 9b2c2e9b..f3f4baf9 100644 --- a/test/subs_in_out.cc +++ b/test/subs_in_out.cc @@ -10,7 +10,7 @@ int main (int argc, char* argv[]) exit (EXIT_FAILURE); } - dcp::SubtitleContent s (argv[1]); + dcp::SubtitleContent s (argv[1], false); cout << s.xml_as_string (); return 0; } diff --git a/test/subtitle_tests.cc b/test/subtitle_tests.cc index 77dd29d7..2f733194 100644 --- a/test/subtitle_tests.cc +++ b/test/subtitle_tests.cc @@ -27,7 +27,7 @@ using boost::shared_ptr; /* Load some subtitle content from XML and check that it is read correctly */ BOOST_AUTO_TEST_CASE (subtitles1) { - dcp::SubtitleContent subs ("test/data/subs1.xml"); + dcp::SubtitleContent subs ("test/data/subs1.xml", false); BOOST_CHECK_EQUAL (subs.language(), "French"); @@ -122,7 +122,7 @@ BOOST_AUTO_TEST_CASE (subtitles1) /** And similarly for another one */ BOOST_AUTO_TEST_CASE (subtitles2) { - dcp::SubtitleContent subs ("test/data/subs2.xml"); + dcp::SubtitleContent subs ("test/data/subs2.xml", false); list<shared_ptr<dcp::SubtitleString> > s = subs.subtitles_at (dcp::Time (0, 0, 42, 100)); BOOST_CHECK_EQUAL (s.size(), 2); |
