diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-04-25 20:52:47 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-04-25 20:52:47 +0100 |
| commit | 51fcb7e0f42b385f569f10f93c29f5a1f2802d82 (patch) | |
| tree | bc23baad8c56cf3f48be2b27380504532c0d1992 /src/lib/audio_mapping.cc | |
| parent | 49651967e5fe9d948d82269bc71a922f244e602d (diff) | |
Use content digest for audio maps, not file name.
Diffstat (limited to 'src/lib/audio_mapping.cc')
| -rw-r--r-- | src/lib/audio_mapping.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/audio_mapping.cc b/src/lib/audio_mapping.cc index 2e8077565..83c748f1a 100644 --- a/src/lib/audio_mapping.cc +++ b/src/lib/audio_mapping.cc @@ -94,7 +94,7 @@ AudioMapping::as_xml (xmlpp::Node* node) const for (list<pair<Channel, libdcp::Channel> >::const_iterator i = _content_to_dcp.begin(); i != _content_to_dcp.end(); ++i) { xmlpp::Node* t = node->add_child ("Map"); shared_ptr<const AudioContent> c = i->first.content.lock (); - t->add_child ("Content")->add_child_text (c->file().string ()); + t->add_child ("Content")->add_child_text (c->digest ()); t->add_child ("ContentIndex")->add_child_text (lexical_cast<string> (i->first.index)); t->add_child ("DCP")->add_child_text (lexical_cast<string> (i->second)); } @@ -107,7 +107,7 @@ AudioMapping::set_from_xml (ContentList const & content, shared_ptr<const cxml:: for (list<shared_ptr<cxml::Node> >::const_iterator i = c.begin(); i != c.end(); ++i) { string const c = (*i)->string_child ("Content"); ContentList::const_iterator j = content.begin (); - while (j != content.end() && (*j)->file().string() != c) { + while (j != content.end() && (*j)->digest() != c) { ++j; } |
