From 4727c59a4092f4e5c7670698993274cf9607b8cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Hugo=20Beauz=C3=A9e-Luyssen?= Date: Mon, 26 Jun 2017 14:04:41 +0200 Subject: [PATCH] d3d11va: Fix UWP build --- modules/codec/avcodec/d3d11va.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c index fa427de5ca..36a8205f24 100644 --- a/modules/codec/avcodec/d3d11va.c +++ b/modules/codec/avcodec/d3d11va.c @@ -711,10 +711,10 @@ static int DxCreateDecoderSurfaces(vlc_va_t *va, int codec_id, /* On the Xbox 1/S, any decoding of H264 with one dimension over 2304 * crashes totally the device */ if (codec_id == AV_CODEC_ID_H264 && - (dx_sys->surface_width > 2304 || dx_sys->surface_height > 2304) && + (dx_sys->va_pool.surface_width > 2304 || dx_sys->va_pool.surface_height > 2304) && isXboxHardware(dx_sys->d3ddev)) { - msg_Warn(va, "%dx%d resolution not supported by your hardware", dx_sys->surface_width, dx_sys->surface_height); + msg_Warn(va, "%dx%d resolution not supported by your hardware", dx_sys->va_pool.surface_width, dx_sys->va_pool.surface_height); return VLC_EGENERIC; } #endif -- 2.11.4.GIT