X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Ftools%2Fdcpomatic_cli.cc;h=44abf4116d01403fc56963eee4d2a112d000a705;hb=bfe277e664a03ec47cd6bee7e1b1e4aca6eb38e6;hp=8c33b7d83a983f4917bf98ee413bf0cf7186d635;hpb=e80e6a8567dd107f5ea3b708975cb5fd92112a57;p=dcpomatic.git diff --git a/src/tools/dcpomatic_cli.cc b/src/tools/dcpomatic_cli.cc index 8c33b7d83..44abf4116 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 paths = (*i)->paths (); + for (vector::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 (); @@ -166,9 +177,7 @@ main (int argc, char* argv[]) if (progress) { cout << (*i)->name() << ": "; - float const p = (*i)->progress (); - - if (p >= 0) { + if ((*i)->progress ()) { cout << (*i)->status() << " \n"; } else { cout << ": Running \n"; @@ -207,6 +216,8 @@ main (int argc, char* argv[]) indirectly holding onto codecs. */ JobManager::drop (); + + ServerFinder::drop (); return error ? EXIT_FAILURE : EXIT_SUCCESS; }