diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-07-20 21:30:36 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-07-20 21:30:36 +0100 |
| commit | 860c515ce02f210e73ac9837871d5317ade67d6d (patch) | |
| tree | b92b9928635703e68bec71a52ce97af6486bfbc5 | |
| parent | 43d2c7aef17adceb04f84109b432a830f00d1bd1 (diff) | |
Add urn:uuid: to LoadFont nodes in SMPTE subs.
| -rw-r--r-- | src/smpte_subtitle_asset.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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<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 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<shared_ptr<SMPTELoadFontNode> >::const_iterator j = _load_font_nodes.begin (); @@ -210,7 +210,7 @@ SMPTESubtitleAsset::xml_as_string () const BOOST_FOREACH (shared_ptr<SMPTELoadFontNode> 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); } |
