From: RĂ©mi Denis-Courmont Date: Sun, 11 Apr 2010 08:18:45 +0000 (+0300) Subject: Qt4: use putenv() before any thread is created X-Git-Tag: 1.1.0-pre1~47 X-Git-Url: https://git.sesse.net/?p=vlc;a=commitdiff_plain;h=88e7248c43324b2f776cf54f4d90dc960a581756 Qt4: use putenv() before any thread is created --- diff --git a/bin/vlc.c b/bin/vlc.c index 1c64656a23..9ccbdd8940 100644 --- a/bin/vlc.c +++ b/bin/vlc.c @@ -89,6 +89,10 @@ int main( int i_argc, const char *ppsz_argv[] ) # endif #endif + /* Make Xlib hide visuals with an alphachannel. Ensure that Qt4 will not + * use the alpha channel for the embedded video window. */ + putenv( (char *)"XLIB_SKIP_ARGB_VISUALS=1" ); + /* Synchronously intercepted POSIX signals. * * In a threaded program such as VLC, the only sane way to handle signals diff --git a/modules/gui/qt4/qt4.cpp b/modules/gui/qt4/qt4.cpp index fe7ea7d61a..b823c04991 100644 --- a/modules/gui/qt4/qt4.cpp +++ b/modules/gui/qt4/qt4.cpp @@ -295,7 +295,6 @@ static int Open( vlc_object_t *p_this, bool isDialogProvider ) return VLC_EGENERIC; } XCloseDisplay( p_display ); - putenv( (char *)"XLIB_SKIP_ARGB_VISUALS=1" ); #else char *display = NULL; #endif