summaryrefslogtreecommitdiff
path: root/src/cpl.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-01-05 14:01:00 +0000
committerCarl Hetherington <cth@carlh.net>2016-01-05 14:01:00 +0000
commit342aad2ddf893aaaafa9a2c9980579d2dc4ec125 (patch)
tree85cd4c34316d76679c18ea49c7de33e8066a6a1c /src/cpl.cc
parentaa632b458fc2aa5ff1ca2e2702dcf589ae627d7d (diff)
Try to rationalise handling of urn:uuid: prefixes.
Diffstat (limited to 'src/cpl.cc')
-rw-r--r--src/cpl.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cpl.cc b/src/cpl.cc
index 9633abc4..0677ec36 100644
--- a/src/cpl.cc
+++ b/src/cpl.cc
@@ -66,10 +66,7 @@ CPL::CPL (boost::filesystem::path file)
cxml::Document f ("CompositionPlaylist");
f.read_file (file);
- _id = f.string_child ("Id");
- if (_id.length() > 9) {
- _id = _id.substr (9);
- }
+ _id = remove_urn_uuid (f.string_child ("Id"));
_annotation_text = f.optional_string_child ("AnnotationText").get_value_or ("");
_metadata.issuer = f.optional_string_child ("Issuer").get_value_or ("");
_metadata.creator = f.optional_string_child ("Creator").get_value_or ("");