diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-05 14:42:28 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-05 14:42:28 +0100 |
| commit | 943e75e0ac5730714f3823771f127fe78e4cf82b (patch) | |
| tree | 42e3668973fab1f76c9b0e616335e73cdf39f372 /src/reel_sound_asset.cc | |
| parent | b06b12ad345ef9aadc2f53228cec1036e6174f29 (diff) | |
Fix rebase onto 1.0.
Diffstat (limited to 'src/reel_sound_asset.cc')
| -rw-r--r-- | src/reel_sound_asset.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/reel_sound_asset.cc b/src/reel_sound_asset.cc index 131672b8..49049e5f 100644 --- a/src/reel_sound_asset.cc +++ b/src/reel_sound_asset.cc @@ -24,6 +24,7 @@ #include "reel_sound_asset.h" #include "dcp_assert.h" #include <libcxml/cxml.h> +#include <libxml++/libxml++.h> using std::string; using boost::shared_ptr; @@ -59,11 +60,11 @@ ReelSoundAsset::write_to_cpl (xmlpp::Node* node, Standard standard) const { ReelAsset::write_to_cpl (node, standard); - if (!key_id ().empty ()) { + if (key_id ()) { /* Find <MainSound> */ xmlpp::Node* ms = find_child (node, cpl_node_name ()); /* Find <Hash> */ xmlpp::Node* hash = find_child (ms, "Hash"); - ms->add_child_before (hash, "KeyId")->add_child_text ("urn:uuid:" + key_id ()); + ms->add_child_before (hash, "KeyId")->add_child_text ("urn:uuid:" + key_id().get ()); } } |
