Commit 0d96c8d2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Ugly hack to prevent qt4-x11 from using alpha channel

This breaks our current Xlib XVideo and plain X11 outputs.
Qt4 would create an ARGB window for our embedded video. Then, the
Xlib plugins would raise BadMatch errors and VLC aborts. Starting
cairo-dock is an easy way to trigger this problem.
(With XCB plugins, we fail safe to OpenGL/GLX instead of crashing.)

We should instead handle ARGB visuals properly. But that would involve
more efforts, and would only enable plain X11, not XVideo anyway.

This should work around LP#416294.

This is ugly and not thread-safe. If you have a better idea, go ahead.
(cherry picked from commit c0ec5be56e71c273eef4faea8d927eeb3cbc7ec5)
parent 2f5e98e2
......@@ -284,6 +284,7 @@ static int Open( vlc_object_t *p_this )
return VLC_EGENERIC;
}
XCloseDisplay( p_display );
putenv( "XLIB_SKIP_ARGB_VISUALS=1" );
#endif
/* Allocations of p_sys */
......
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