[vlc-commits] vdpau: accept video surfaces as input to the display plugin

Rémi Denis-Courmont git at videolan.org
Sun Jul 7 20:13:38 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul  4 19:19:51 2013 +0300| [9fe4fdc66f550f3fa31f5f64a1c2a1f26a4ae266] | committer: Rémi Denis-Courmont

vdpau: accept video surfaces as input to the display plugin

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9fe4fdc66f550f3fa31f5f64a1c2a1f26a4ae266
---

 modules/hw/vdpau/display.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/hw/vdpau/display.c b/modules/hw/vdpau/display.c
index acbb3c0..68d8462 100644
--- a/modules/hw/vdpau/display.c
+++ b/modules/hw/vdpau/display.c
@@ -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;



More information about the vlc-commits mailing list