X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Ftools%2Fmakedcp.cc;h=0c639077162250cb31b11fa58e9a84f7b5f347d8;hb=a1a8a90d422531182b9ee0baa06c618ff4ce5813;hp=900c31bfc9fca7630bc8002ba833128be88563ff;hpb=ae118502865c95f15317716aef8d26641b9e9c3f;p=dcpomatic.git diff --git a/src/tools/makedcp.cc b/src/tools/makedcp.cc index 900c31bfc..0c6390771 100644 --- a/src/tools/makedcp.cc +++ b/src/tools/makedcp.cc @@ -26,7 +26,6 @@ #include "film.h" #include "filter.h" #include "transcode_job.h" -#include "make_dcp_job.h" #include "job_manager.h" #include "ab_transcode_job.h" #include "util.h" @@ -156,10 +155,11 @@ main (int argc, char* argv[]) pair const f = Filter::ffmpeg_strings (film->filters ()); cout << "Filters: " << f.first << " " << f.second << "\n"; - film->make_dcp (true); + film->make_dcp (); bool should_stop = false; bool first = true; + bool error = false; while (!should_stop) { dvdomatic_sleep (5); @@ -195,6 +195,7 @@ main (int argc, char* argv[]) if ((*i)->finished_in_error ()) { ++finished_in_error; + error = true; } if (!progress && (*i)->finished_in_error ()) { @@ -210,7 +211,7 @@ main (int argc, char* argv[]) } } - return 0; + return error ? EXIT_FAILURE : EXIT_SUCCESS; }