Add <Hash> to CPL asset entries; this is optional but apparently Technicolor like it.
authorCarl Hetherington <cth@carlh.net>
Mon, 14 Jul 2014 10:40:29 +0000 (11:40 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 14 Jul 2014 10:40:29 +0000 (11:40 +0100)
src/mxf_asset.cc

index f16fd35beee98eaf02b615ef9e3415beeb8a078b..28ac1933371cf8cfe8b0862230ae48acbade168c 100644 (file)
@@ -123,6 +123,7 @@ MXFAsset::write_to_cpl (xmlpp::Element* node) const
        if (!_key_id.empty ()) {
                a->add_child("KeyId")->add_child_text ("urn:uuid:" + _key_id);
        }
+       a->add_child ("Hash")->add_child_text (digest ());
 }
 
 void