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.
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");
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 */