]> git.sesse.net Git - vlc/commitdiff
Qt4: use putenv() before any thread is created
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 11 Apr 2010 08:18:45 +0000 (11:18 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 11 Apr 2010 08:18:45 +0000 (11:18 +0300)
bin/vlc.c
modules/gui/qt4/qt4.cpp

index 1c64656a23377d4ec67ec4451b1c7250a7feb605..9ccbdd89401bcc2036c80f0b20ac506dbefa574b 100644 (file)
--- 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
index fe7ea7d61abffb925248519240c19a637c5bfe60..b823c04991d949d0dd6368c70c62402a03580e02 100644 (file)
@@ -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