X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcontent.cc;h=1fb4681a251b2810c662426912114f6a2af181e7;hb=2e504b33eb9f38cac629ad31b7c107fb0cf5efda;hp=16069b7a7967b52a1200c40d241e2a6e91ff20eb;hpb=a0c0e609f7fbff8513135428378cc16684bae937;p=dcpomatic.git diff --git a/src/lib/content.cc b/src/lib/content.cc index 16069b7a7..1fb4681a2 100644 --- a/src/lib/content.cc +++ b/src/lib/content.cc @@ -24,11 +24,17 @@ #include "util.h" #include "content_factory.h" #include "ui_signaller.h" +#include "exceptions.h" +#include "film.h" + +#include "i18n.h" using std::string; using std::stringstream; using std::set; +using std::list; using std::cout; +using std::vector; using boost::shared_ptr; using boost::lexical_cast; @@ -48,7 +54,7 @@ Content::Content (shared_ptr f) } -Content::Content (shared_ptr f, Time p) +Content::Content (shared_ptr f, DCPTime p) : _film (f) , _position (p) , _trim_start (0) @@ -72,38 +78,60 @@ Content::Content (shared_ptr f, shared_ptr node) : _film (f) , _change_signals_frequent (false) { - _paths.push_back (node->string_child ("Path")); + list path_children = node->node_children ("Path"); + for (list::const_iterator i = path_children.begin(); i != path_children.end(); ++i) { + _paths.push_back ((*i)->content ()); + } _digest = node->string_child ("Digest"); - _position = node->number_child