diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-24 15:05:19 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-24 15:05:19 +0100 |
| commit | 81312913ad26aaee12eeabd3f27a537806c97049 (patch) | |
| tree | 8a58899a4df44bc88f85d52707152934cc0ccb51 /test | |
| parent | 094117316524f12fc82adbdf721778eed04e66f6 (diff) | |
Fix various SNAFUs with Font ID handling.
Diffstat (limited to 'test')
| -rw-r--r-- | test/dcp_font_test.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/dcp_font_test.cc b/test/dcp_font_test.cc index 5be8845d..daa16940 100644 --- a/test/dcp_font_test.cc +++ b/test/dcp_font_test.cc @@ -69,7 +69,7 @@ BOOST_AUTO_TEST_CASE (interop_dcp_font_test) fread (ref.get(), 1, size, f); fclose (f); - BOOST_CHECK_EQUAL (memcmp (subs2->_fonts["theFontId"].data.get(), ref.get(), size), 0); + BOOST_CHECK_EQUAL (memcmp (subs2->_fonts.front().data.data.get(), ref.get(), size), 0); } /** Create a DCP with SMPTE subtitles and check that the font is written and read back correctly */ @@ -106,6 +106,6 @@ BOOST_AUTO_TEST_CASE (smpte_dcp_font_test) fread (ref.get(), 1, size, f); fclose (f); - BOOST_REQUIRE (subs2->_fonts["theFontId"].data); - BOOST_CHECK_EQUAL (memcmp (subs2->_fonts["theFontId"].data.get(), ref.get(), size), 0); + BOOST_REQUIRE (subs2->_fonts.front().data.data); + BOOST_CHECK_EQUAL (memcmp (subs2->_fonts.front().data.data.get(), ref.get(), size), 0); } |
