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

vdpau: accept video surfaces as input to the display plugin

parent 4589c309
......@@ -439,6 +439,10 @@ static int Open(vlc_object_t *obj)
/* Check source format */
VdpChromaType chroma;
VdpYCbCrFormat format;
if (vd->fmt.i_chroma == VLC_CODEC_VDPAU_VIDEO_420
|| vd->fmt.i_chroma == VLC_CODEC_VDPAU_VIDEO_422)
;
else
if (vlc_fourcc_to_vdp_ycc(vd->fmt.i_chroma, &chroma, &format))
{
uint32_t w, h;
......
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