From 81312913ad26aaee12eeabd3f27a537806c97049 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 24 Jun 2015 15:05:19 +0100 Subject: Fix various SNAFUs with Font ID handling. --- test/dcp_font_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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); } -- cgit v1.2.3