diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-07-20 21:48:27 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-07-20 21:48:27 +0100 |
| commit | 093e2c266a9801ac8b5dcf709409bf4998fda970 (patch) | |
| tree | 77d7574f1cd2acbd7be61e4b58571ad647e75d9a /src | |
| parent | 860c515ce02f210e73ac9837871d5317ade67d6d (diff) | |
Fix font id confusion.
Diffstat (limited to 'src')
| -rw-r--r-- | src/smpte_subtitle_asset.cc | 5 |
1 files changed, 1 insertions, 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<ASDCP::TimedText::MXFReader> reader) shared_array<uint8_t> 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<shared_ptr<SMPTELoadFontNode> >::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; } |
