]> git.sesse.net Git - vlc/commit
Ugly hack to prevent qt4-x11 from using alpha channel
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 15 Nov 2009 15:03:17 +0000 (17:03 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 15 Nov 2009 20:14:18 +0000 (22:14 +0200)
commit0d96c8d295b0745a44a8bb69db5979d1bf37a5e6
tree822c3552b1cbab0c870d16450b26ff9bbc3eb72b
parent2f5e98e22b4b3ffa87c97846ec51d3654839a4cc
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)
modules/gui/qt4/qt4.cpp