diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-01-05 14:01:00 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-01-05 14:01:00 +0000 |
| commit | 342aad2ddf893aaaafa9a2c9980579d2dc4ec125 (patch) | |
| tree | 85cd4c34316d76679c18ea49c7de33e8066a6a1c /src/reel_mxf.cc | |
| parent | aa632b458fc2aa5ff1ca2e2702dcf589ae627d7d (diff) | |
Try to rationalise handling of urn:uuid: prefixes.
Diffstat (limited to 'src/reel_mxf.cc')
| -rw-r--r-- | src/reel_mxf.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/reel_mxf.cc b/src/reel_mxf.cc index f9e8890a..c03acfa8 100644 --- a/src/reel_mxf.cc +++ b/src/reel_mxf.cc @@ -18,6 +18,7 @@ */ #include "reel_mxf.h" +#include "util.h" #include "mxf.h" #include "dcp_assert.h" #include <libcxml/cxml.h> @@ -37,7 +38,7 @@ ReelMXF::ReelMXF (optional<string> key_id) ReelMXF::ReelMXF (shared_ptr<const cxml::Node> node) : _key_id (node->optional_string_child ("KeyId")) { - if (_key_id && _key_id.get().length() > 9) { - _key_id = _key_id.get().substr (9); + if (_key_id) { + _key_id = remove_urn_uuid (*_key_id); } } |
