From: Carl Hetherington Date: Thu, 25 Aug 2016 08:22:35 +0000 (+0100) Subject: NeedsAssets was only added recently, so allow it not to be present. X-Git-Tag: v2.9.16~4 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=e2d0781d45fccd67649a8943f1fb45442f5d2cbc;ds=sidebyside NeedsAssets was only added recently, so allow it not to be present. --- 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")); }