Add and use new write_to_cpl_mxf().
[libdcp.git] / src / reel_sound_asset.cc
index 4073472e5ff4dff8d671361dc7007f927dcc0589..40466ff31d69a56af93f7e46a20a5c26184a8524 100644 (file)
@@ -74,14 +74,8 @@ ReelSoundAsset::key_type () const
 xmlpp::Node *
 ReelSoundAsset::write_to_cpl (xmlpp::Node* node, Standard standard) const
 {
-
-        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());
-        }
-
        xmlpp::Node* asset = write_to_cpl_asset (node, standard, hash());
+       write_to_cpl_mxf (asset);
        return asset;
 }