projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88c912d
)
NeedsAssets was only added recently, so allow it not to be present.
author
Carl Hetherington
<cth@carlh.net>
Thu, 25 Aug 2016 08:22:35 +0000
(09:22 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 25 Aug 2016 08:22:35 +0000
(09:22 +0100)
src/lib/dcp_content.cc
patch
|
blob
|
history
diff --git
a/src/lib/dcp_content.cc
b/src/lib/dcp_content.cc
index a5c0e5da2e9b20cd70a8dbc0f6809cc3ae64aae1..8b823c61966afe23d4bfdf8dfb78ccad2888c6e1 100644
(file)
--- 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"));
}