Commit 9ae9589c authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Fixing a race condition.

This seems to be introduced when using pulse audio output, as it calls
XopenDisplay(), and so does Qt.
parent 646b43c4
......@@ -38,6 +38,10 @@
#include <QColor>
#include <QPalette>
#ifdef Q_WS_X11
#include <X11/Xlib.h>
#endif
/**
* VLMC Entry point
* \brief this is the VLMC entry point
......@@ -48,6 +52,9 @@
int
VLMCmain( int argc, char **argv )
{
#ifdef Q_WS_X11
XInitThreads();
#endif
QApplication app( argc, argv );
app.setApplicationName( "vlmc" );
app.setOrganizationName( "vlmc" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment