summaryrefslogtreecommitdiff
path: root/src/reel_asset.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/reel_asset.cc
parentaa632b458fc2aa5ff1ca2e2702dcf589ae627d7d (diff)
Try to rationalise handling of urn:uuid: prefixes.
Diffstat (limited to 'src/reel_asset.cc')
-rw-r--r--src/reel_asset.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/reel_asset.cc b/src/reel_asset.cc
index 654cde03..2414c69f 100644
--- a/src/reel_asset.cc
+++ b/src/reel_asset.cc
@@ -67,7 +67,7 @@ ReelAsset::ReelAsset (shared_ptr<Asset> asset, Fraction edit_rate, int64_t intri
}
ReelAsset::ReelAsset (shared_ptr<const cxml::Node> node)
- : Object (node->string_child ("Id"))
+ : Object (remove_urn_uuid (node->string_child ("Id")))
, _asset_ref (_id)
, _annotation_text (node->optional_string_child ("AnnotationText").get_value_or (""))
, _edit_rate (Fraction (node->string_child ("EditRate")))
@@ -76,10 +76,7 @@ ReelAsset::ReelAsset (shared_ptr<const cxml::Node> node)
, _duration (node->number_child<int64_t> ("Duration"))
, _hash (node->optional_string_child ("Hash").get_value_or (""))
{
- if (_id.length() > 9) {
- _id = _id.substr (9);
- _asset_ref.set_id (_id);
- }
+
}
void