diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-08-25 09:22:35 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-08-25 09:22:35 +0100 |
| commit | e2d0781d45fccd67649a8943f1fb45442f5d2cbc (patch) | |
| tree | dbff5f8831003c490d0e51d54e5671f448b4b641 /src | |
| parent | 88c912d29832aea730bc80fa80ecaaf63e1e3a2a (diff) | |
NeedsAssets was only added recently, so allow it not to be present.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/dcp_content.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<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")); } |
