#include "lib/config.h"
#include "lib/log.h"
#include "lib/ui_signaller.h"
+#include "lib/server_finder.h"
using std::string;
using std::cerr;
{
cerr << "Syntax: " << n << " [OPTION] <FILM>\n"
<< " -v, --version show DCP-o-matic version\n"
- << " -h, --help show this help\n"
- << " -d, --deps list DCP-o-matic dependency details and quit\n"
- << " -f, --flags show flags passed to C++ compiler on build\n"
+ << " -h, --help show this help\n"
+ << " -d, --deps list DCP-o-matic dependency details and quit\n"
+ << " -f, --flags show flags passed to C++ compiler on build\n"
<< " -n, --no-progress do not print progress to stdout\n"
<< " -r, --no-remote do not use any remote servers\n"
<< "\n"
ui_signaller = new UISignaller ();
if (no_remote) {
- Config::instance()->set_servers (vector<ServerDescription> ());
+ ServerFinder::instance()->disable ();
}
cout << "DCP-o-matic " << dcpomatic_version << " git " << dcpomatic_git_commit;
}
}
+ /* This is just to stop valgrind reporting leaks due to JobManager
+ indirectly holding onto codecs.
+ */
+ JobManager::drop ();
+
return error ? EXIT_FAILURE : EXIT_SUCCESS;
}