diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-05 01:51:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-05 01:51:24 +0100 |
| commit | b038dc192bdac76da3b1bebdd6b448e8be830814 (patch) | |
| tree | a21f6ab4fce16b514c97c41039733d81175020cd /src/util.cc | |
| parent | e6913e8eb44e1dc990ef89f19ab64792880898a5 (diff) | |
Fix ordering of KeyId tag in SMPTE CPLs.
Diffstat (limited to 'src/util.cc')
| -rw-r--r-- | src/util.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/util.cc b/src/util.cc index 044801b7..86d1bc87 100644 --- a/src/util.cc +++ b/src/util.cc @@ -414,3 +414,16 @@ dcp::private_key_fingerprint (string key) char digest_base64[64]; return Kumu::base64encode (digest, 20, digest_base64, 64); } + +xmlpp::Node * +dcp::find_child (xmlpp::Node const * node, string name) +{ + xmlpp::Node::NodeList c = node->get_children (); + xmlpp::Node::NodeList::iterator i = c.begin(); + while (i != c.end() && (*i)->get_name() != name) { + ++i; + } + + DCP_ASSERT (i != c.end ()); + return *i; +} |
