From 860c515ce02f210e73ac9837871d5317ade67d6d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 20 Jul 2015 21:30:36 +0100 Subject: Add urn:uuid: to LoadFont nodes in SMPTE subs. --- src/smpte_subtitle_asset.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/smpte_subtitle_asset.cc b/src/smpte_subtitle_asset.cc index 1ef9e7ca..cd9ccbf7 100644 --- a/src/smpte_subtitle_asset.cc +++ b/src/smpte_subtitle_asset.cc @@ -151,7 +151,7 @@ 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 of unknown origin and meaning... */ + /* 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 (); @@ -210,7 +210,7 @@ SMPTESubtitleAsset::xml_as_string () const BOOST_FOREACH (shared_ptr i, _load_font_nodes) { xmlpp::Element* load_font = root->add_child("LoadFont", "dcst"); - load_font->add_child_text (i->urn); + load_font->add_child_text ("urn:uuid:" + i->urn); load_font->set_attribute ("ID", i->id); } -- cgit v1.2.3