began work on headless export path

This commit is contained in:
itsmattkc
2020-04-20 02:37:10 +10:00
parent 1474a505ee
commit 1c3c8cd9b2
20 changed files with 695 additions and 199 deletions
+13 -6
View File
@@ -66,8 +66,6 @@ int main(int argc, char *argv[]) {
app_version.append(GITHASH);
#endif
qInfo() << "Using Qt version:" << qVersion();
QCoreApplication::setApplicationVersion(app_version);
#if (QT_VERSION >= QT_VERSION_CHECK(5, 7, 0))
@@ -85,11 +83,20 @@ int main(int argc, char *argv[]) {
avfilter_register_all();
#endif
// Start core
OLIVE_NAMESPACE::Core::instance()->Start();
int exit_code;
// Run application loop and receive exit code
int exit_code = a.exec();
// Start core
if (OLIVE_NAMESPACE::Core::instance()->Start()) {
// Run application loop and receive exit code
exit_code = a.exec();
} else {
// Core failed to start, exit now
exit_code = 1;
}
// Clear core memory
OLIVE_NAMESPACE::Core::instance()->Stop();