From a81d19fd37f5381b70240cb789ef4304bfd81b0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= <remi@remlab.net> Date: Sun, 27 Sep 2015 15:47:57 +0300 Subject: [PATCH] vdpau: remove stray setup error case --- modules/hw/vdpau/avcodec.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/modules/hw/vdpau/avcodec.c b/modules/hw/vdpau/avcodec.c index 0c2a946e14e4..f721befd252b 100644 --- a/modules/hw/vdpau/avcodec.c +++ b/modules/hw/vdpau/avcodec.c @@ -143,15 +143,6 @@ static int Copy(vlc_va_t *va, picture_t *pic, uint8_t *data) static int Setup(vlc_va_t *va, AVCodecContext *avctx, vlc_fourcc_t *chromap) { vlc_va_sys_t *sys = va->sys; - VdpChromaType type; - uint32_t width, height; - - if (av_vdpau_get_surface_parameters(avctx, &type, &width, &height)) - return VLC_EGENERIC; - - assert(type == sys->type); - if (sys->width != width || sys->height != height) - return VLC_EGENERIC; switch (sys->type) { -- GitLab