Supporter.
[dcpomatic.git] / src / tools / dcpomatic_create.cc
index 0130b518305802cfde764b8d4c6f191d94b0e488..2911be0a70414ffac412ca2595e0dde485387629 100644 (file)
@@ -27,6 +27,7 @@
 #include "lib/dcp_content_type.h"
 #include "lib/ratio.h"
 #include "lib/image_content.h"
+#include <libxml++/libxml++.h>
 #include <boost/filesystem.hpp>
 #include <getopt.h>
 #include <string>
@@ -213,7 +214,7 @@ main (int argc, char* argv[])
                film->set_signed (sign);
 
                for (int i = optind; i < argc; ++i) {
-                       shared_ptr<Content> c = content_factory (film, argv[i]);
+                       shared_ptr<Content> c = content_factory (film, boost::filesystem::canonical (argv[i]));
                        shared_ptr<VideoContent> vc = dynamic_pointer_cast<VideoContent> (c);
                        if (vc) {
                                vc->set_scale (VideoContentScale (content_ratio));