diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-09 20:10:09 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-09 20:10:09 +0100 |
| commit | fa2c49210c9fcf0f26205927aec0aceb13ca69ce (patch) | |
| tree | 3f4c060d5876929d58e3b02b5220121e558e16c4 /test/ssa_subtitle_test.cc | |
| parent | 35928d882377e35db4eba43fb0f5882e81fa1a29 (diff) | |
Don't write multiple <LoadFont> tags to Interop subtitles (#1273).
Diffstat (limited to 'test/ssa_subtitle_test.cc')
| -rw-r--r-- | test/ssa_subtitle_test.cc | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/test/ssa_subtitle_test.cc b/test/ssa_subtitle_test.cc index 63a90b448..bf460247c 100644 --- a/test/ssa_subtitle_test.cc +++ b/test/ssa_subtitle_test.cc @@ -58,23 +58,7 @@ BOOST_AUTO_TEST_CASE (ssa_subtitle_test1) wait_for_jobs (); /* Find the subtitle file and check it */ - for ( - boost::filesystem::directory_iterator i = boost::filesystem::directory_iterator (film->directory().get() / film->dcp_name (false)); - i != boost::filesystem::directory_iterator (); - ++i) { - - if (boost::filesystem::is_directory (i->path ())) { - for ( - boost::filesystem::directory_iterator j = boost::filesystem::directory_iterator (i->path ()); - j != boost::filesystem::directory_iterator (); - ++j) { - - if (boost::algorithm::starts_with (j->path().leaf().string(), "sub_")) { - list<string> ignore; - ignore.push_back ("SubtitleID"); - check_xml (*j, private_data / "DKH_UT_EN20160601def.xml", ignore); - } - } - } - } + list<string> ignore; + ignore.push_back ("SubtitleID"); + check_xml (subtitle_file(film), private_data / "DKH_UT_EN20160601def.xml", ignore); } |
