+
+string
+ReelSubtitleAsset::key_type () const
+{
+ return "MDSK";
+}
+
+xmlpp::Node *
+ReelSubtitleAsset::write_to_cpl (xmlpp::Node* node, Standard standard) const
+{
+ xmlpp::Node* asset = ReelAsset::write_to_cpl (node, standard);
+
+ if (key_id ()) {
+ /* Find <Hash> */
+ xmlpp::Node* hash = find_child (asset, "Hash");
+ asset->add_child_before(hash, "KeyId")->add_child_text("urn:uuid:" + key_id().get());
+ }
+
+ return asset;
+}