Commit 2c1940d7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XCB/XVideo: do not fallback to YUYV output for RGB inputs

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.
parent 47d7b5c0
......@@ -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 */
......
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