Add another .xsd.
[libdcp.git] / src / reel_mxf.cc
index f170157ec0465b4cf464f4d0139b01e492028c5f..fbc55cf7496225ac81da30f7e833265b2d0dda33 100644 (file)
@@ -79,3 +79,13 @@ ReelMXF::mxf_equals (shared_ptr<const ReelMXF> other, EqualityOptions opt, NoteH
 
        return true;
 }
+
+
+void
+ReelMXF::write_to_cpl_mxf (xmlpp::Node* node) const
+{
+        if (key_id ()) {
+               xmlpp::Node* hash = find_child (node, "Hash");
+               node->add_child_before(hash, "KeyId")->add_child_text("urn:uuid:" + key_id().get());
+        }
+}