]> git.sesse.net Git - vlc/commitdiff
XCB/XVideo: do not fallback to YUYV output for RGB inputs
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 5 Oct 2014 19:41:51 +0000 (22:41 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 5 Oct 2014 19:46:37 +0000 (22:46 +0300)
If the XVideo driver does not provide any RGB image format, then we
are definitely better off with GLX than XVideo. Consider:
 - GLX supports proper subpicture blending - not XVideo,
 - GLX does not need chroma conversion - XVideo does in this case.

This change makes no difference if the XVideo driver supports RGB.

modules/video_output/xcb/xvideo.c

index c7fc2463820386813f1e1a10720b1979862df3e4..e237c0136a500006f26334587c23dc92d301872f 100644 (file)
@@ -256,7 +256,7 @@ FindFormat (vlc_object_t *obj, xcb_connection_t *conn, video_format_t *fmt,
             const xcb_xv_adaptor_info_t *a, uint32_t *idp)
 {
     /* Order chromas by preference */
-    vlc_fourcc_t tab[7];
+    vlc_fourcc_t tab[6];
     const vlc_fourcc_t *chromav = tab;
 
     vlc_fourcc_t chroma = var_InheritInteger (obj, "xvideo-format-id");
@@ -276,8 +276,7 @@ FindFormat (vlc_object_t *obj, xcb_connection_t *conn, video_format_t *fmt,
         tab[2] = VLC_CODEC_RGB24;
         tab[3] = VLC_CODEC_RGB16;
         tab[4] = VLC_CODEC_RGB15;
-        tab[5] = VLC_CODEC_YUYV;
-        tab[6] = 0;
+        tab[5] = 0;
     }
 
     /* Get available image formats */