X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcontent_factory.cc;h=bab22b8eb19e14b6179fd27696710c6b630df70c;hb=8bef34f672815c3c9b4236d06fdee8dfd0bffbc2;hp=e800628c161dec79fdb68dc5a4fb8645353ff930;hpb=c3da7c64f01420447dbab7f5c2ea42ff1b911cc5;p=dcpomatic.git diff --git a/src/lib/content_factory.cc b/src/lib/content_factory.cc index e800628c1..bab22b8eb 100644 --- a/src/lib/content_factory.cc +++ b/src/lib/content_factory.cc @@ -27,18 +27,18 @@ using std::string; using boost::shared_ptr; shared_ptr -content_factory (shared_ptr film, cxml::NodePtr node) +content_factory (shared_ptr film, cxml::NodePtr node, int version) { string const type = node->string_child ("Type"); boost::shared_ptr content; if (type == "FFmpeg") { - content.reset (new FFmpegContent (film, node)); + content.reset (new FFmpegContent (film, node, version)); } else if (type == "Image") { - content.reset (new ImageContent (film, node)); + content.reset (new ImageContent (film, node, version)); } else if (type == "Sndfile") { - content.reset (new SndfileContent (film, node)); + content.reset (new SndfileContent (film, node, version)); } return content;