diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-08-24 11:16:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-08-24 11:16:24 +0100 |
| commit | 3412af70b950dcdc604413ef05c26becda6da789 (patch) | |
| tree | b901f89335ec7e06531b475dbb45ff1ee7087e28 /src/lib/content.cc | |
| parent | a26b6e9e392a1ac342a19e0d33d92865819c6ded (diff) | |
Bump libdcp for new method.
Diffstat (limited to 'src/lib/content.cc')
| -rw-r--r-- | src/lib/content.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/content.cc b/src/lib/content.cc index 9083635f2..a27032e9c 100644 --- a/src/lib/content.cc +++ b/src/lib/content.cc @@ -135,12 +135,14 @@ Content::Content (shared_ptr<const Film> film, vector<shared_ptr<Content> > c) } void -Content::as_xml (xmlpp::Node* node) const +Content::as_xml (xmlpp::Node* node, bool with_paths) const { boost::mutex::scoped_lock lm (_mutex); - for (vector<boost::filesystem::path>::const_iterator i = _paths.begin(); i != _paths.end(); ++i) { - node->add_child("Path")->add_child_text (i->string ()); + if (with_paths) { + for (vector<boost::filesystem::path>::const_iterator i = _paths.begin(); i != _paths.end(); ++i) { + node->add_child("Path")->add_child_text (i->string ()); + } } node->add_child("Digest")->add_child_text (_digest); node->add_child("Position")->add_child_text (raw_convert<string> (_position.get ())); |
