#include "context.h"
#include "flags.h"
+#include "image_input.h"
#include "mainwindow.h"
#include "mixer.h"
int main(int argc, char *argv[])
{
- setenv("QT_XCB_GL_INTEGRATION", "xcb_egl", 0);
+ parse_flags(argc, argv);
+
+ if (global_flags.va_display.empty() ||
+ global_flags.va_display[0] != '/') {
+ // We normally use EGL for zerocopy, but if we use VA against DRM
+ // instead of against X11, we turn it off, and then don't need EGL.
+ setenv("QT_XCB_GL_INTEGRATION", "xcb_egl", 0);
+ }
setlinebuf(stdout);
av_register_all();
- parse_flags(argc, argv);
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);
QApplication app(argc, argv);
global_mixer->quit();
mainWindow.mixer_shutting_down();
delete global_mixer;
+ ImageInput::shutdown_updaters();
return rc;
}