From e2d0781d45fccd67649a8943f1fb45442f5d2cbc Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 25 Aug 2016 09:22:35 +0100 Subject: [PATCH] NeedsAssets was only added recently, so allow it not to be present. --- src/lib/dcp_content.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc index a5c0e5da2..8b823c619 100644 --- a/src/lib/dcp_content.cc +++ b/src/lib/dcp_content.cc @@ -98,7 +98,7 @@ DCPContent::DCPContent (shared_ptr 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")); } -- 2.30.2