From 093e2c266a9801ac8b5dcf709409bf4998fda970 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 20 Jul 2015 21:48:27 +0100 Subject: Fix font id confusion. --- src/smpte_subtitle_asset.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/smpte_subtitle_asset.cc b/src/smpte_subtitle_asset.cc index cd9ccbf7..cb6e90c1 100644 --- a/src/smpte_subtitle_asset.cc +++ b/src/smpte_subtitle_asset.cc @@ -151,11 +151,8 @@ SMPTESubtitleAsset::read_fonts (shared_ptr reader) shared_array data (new uint8_t[buffer.Size()]); memcpy (data.get(), buffer.RoData(), buffer.Size()); - /* The IDs in the MXF have a 9 character prefix which I think is urn:uuid: */ - string check_id = string (id).substr (9); - list >::const_iterator j = _load_font_nodes.begin (); - while (j != _load_font_nodes.end() && (*j)->urn != check_id) { + while (j != _load_font_nodes.end() && (*j)->urn != id) { ++j; } -- cgit v1.2.3