NeedsAssets was only added recently, so allow it not to be present.
authorCarl Hetherington <cth@carlh.net>
Thu, 25 Aug 2016 08:22:35 +0000 (09:22 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 25 Aug 2016 08:22:35 +0000 (09:22 +0100)
src/lib/dcp_content.cc

index a5c0e5da2e9b20cd70a8dbc0f6809cc3ae64aae1..8b823c61966afe23d4bfdf8dfb78ccad2888c6e1 100644 (file)
@@ -98,7 +98,7 @@ DCPContent::DCPContent (shared_ptr<const Film> film, cxml::ConstNodePtr node, in
 
        _name = node->string_child ("Name");
        _encrypted = node->bool_child ("Encrypted");
-       _needs_assets = node->bool_child ("NeedsAssets");
+       _needs_assets = node->optional_bool_child("NeedsAssets").get_value_or (false);
        if (node->optional_node_child ("KDM")) {
                _kdm = dcp::EncryptedKDM (node->string_child ("KDM"));
        }