]> git.sesse.net Git - vlc/commitdiff
XCB/X11: disable ARGB support
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 1 May 2010 19:26:56 +0000 (22:26 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 1 May 2010 19:26:56 +0000 (22:26 +0300)
VLC does not currently handle color masks for ARGB chromas, so this can
not work yet. Instead, fail safe to the GLX output.

modules/video_output/xcb/x11.c

index 3255aabd7785353e7a1e2577f414639c6f8e3b2f..8bc8a87d6122c982733e15ef213a884bd55c87b8 100644 (file)
@@ -178,8 +178,13 @@ static int Open (vlc_object_t *obj)
           case 32:
             if (fmt->bits_per_pixel != 32)
                 continue;
+#ifdef FIXED_VLC_RGBA_MASK
             fmt_pic.i_chroma = VLC_CODEC_RGBA;
             break;
+#else
+            msg_Dbg (vd, "X11 visual with alpha-channel not supported");
+            continue;
+#endif
           case 24:
             if (fmt->bits_per_pixel == 32)
                 fmt_pic.i_chroma = VLC_CODEC_RGB32;