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

XCB/XVideo: reject hardware surfaces for the time being

The core cannot blend subpictures to hardware surfaces. In principles,
blending could be performed post chroma conversion, but this is not
supported by the video output wrapper so far.

(cherry picked from commit 47d7b5c0537f16a99ee224c2c75f4f41dd18415d)
parent a9b21ce7
......@@ -374,6 +374,14 @@ static int Open (vlc_object_t *obj)
if (!var_InheritBool (obj, "overlay"))
return VLC_EGENERIC;
else
{ /* NOTE: Reject hardware surface formats. Blending would break. */
const vlc_chroma_description_t *chroma =
vlc_fourcc_GetChromaDescription(vd->source.i_chroma);
if (chroma != NULL && chroma->plane_count == 0)
return VLC_EGENERIC;
}
p_sys = malloc (sizeof (*p_sys));
if (p_sys == NULL)
return VLC_ENOMEM;
......
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