Add and use new write_to_cpl_mxf().
[libdcp.git] / src / reel_picture_asset.cc
index 8c82e01bb6acafa61bd68f229ab90f0689635c45..3052c616c67533fe6f5384a2b6313b38706199db 100644 (file)
@@ -112,11 +112,7 @@ ReelPictureAsset::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());
-        }
+       write_to_cpl_mxf (asset);
 
        return asset;
 }