summaryrefslogtreecommitdiff
path: root/src/tools/dcpomatic_cli.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-10-21 19:14:58 +0100
committerCarl Hetherington <cth@carlh.net>2014-10-21 19:14:58 +0100
commitcb990adba9c57e5107ef2aa9716cf0a26c1df83d (patch)
treee59571d05db47b6f1070c85331ba351fd2794adf /src/tools/dcpomatic_cli.cc
parent8a19e2b56d3b95a18ae8ac9965eab750c28d30ad (diff)
parent5c8599593ee8b3ef05d5c55c5f0885a2d8bfb9d2 (diff)
Merge master.
Diffstat (limited to 'src/tools/dcpomatic_cli.cc')
-rw-r--r--src/tools/dcpomatic_cli.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tools/dcpomatic_cli.cc b/src/tools/dcpomatic_cli.cc
index 8c33b7d83..f55a425ce 100644
--- a/src/tools/dcpomatic_cli.cc
+++ b/src/tools/dcpomatic_cli.cc
@@ -139,6 +139,17 @@ main (int argc, char* argv[])
exit (EXIT_FAILURE);
}
+ ContentList content = film->content ();
+ for (ContentList::const_iterator i = content.begin(); i != content.end(); ++i) {
+ vector<boost::filesystem::path> paths = (*i)->paths ();
+ for (vector<boost::filesystem::path>::const_iterator j = paths.begin(); j != paths.end(); ++j) {
+ if (!boost::filesystem::exists (*j)) {
+ cerr << argv[0] << ": content file " << *j << " not found.\n";
+ exit (EXIT_FAILURE);
+ }
+ }
+ }
+
cout << "\nMaking DCP for " << film->name() << "\n";
film->make_dcp ();