Commit 88e7248c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: use putenv() before any thread is created

parent 7e5403d0
......@@ -89,6 +89,10 @@ int main( int i_argc, const char *ppsz_argv[] )
# 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
......@@ -295,7 +295,6 @@ static int Open( vlc_object_t *p_this, bool isDialogProvider )
XCloseDisplay( p_display );
putenv( (char *)"XLIB_SKIP_ARGB_VISUALS=1" );
char *display = NULL;
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