From: Carl Hetherington Date: Sat, 12 Sep 2015 14:14:15 +0000 (+0100) Subject: Remove erroneous local time from generated ContentVersionId. X-Git-Tag: v1.2.4~1 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=36439e0cb69d7d3a3c3944367fa649b77776e0ba;hp=75356e094480bd7f96263a967a8cf165f4a2f818;p=libdcp.git Remove erroneous local time from generated ContentVersionId. --- diff --git a/src/cpl.cc b/src/cpl.cc index 78f49885..5f3d0291 100644 --- a/src/cpl.cc +++ b/src/cpl.cc @@ -51,11 +51,11 @@ CPL::CPL (string annotation_text, ContentKind content_kind) , _content_kind (content_kind) , _content_version_id ("urn:uuid:" + make_uuid ()) { - /* default _content_version_id to and _content_version_label to + /* default _content_version_id to a random ID and _content_version_label to a random ID and the current time. */ - _content_version_id = "urn:uuid:" + make_uuid() + LocalTime().as_string (); - _content_version_label_text = _content_version_id; + _content_version_id = "urn:uuid:" + make_uuid(); + _content_version_label_text = _content_version_id + LocalTime().as_string (); } /** Construct a CPL object from a XML file */