[vlc-devel] [PATCH 3/3] directx_va: don't allocate va_surfaces when using the external pool
Steve Lhomme
robux4 at videolabs.io
Wed Jun 28 17:38:20 CEST 2017
--
replaces https://patches.videolan.org/patch/17141/
- add check in directx_va
---
modules/codec/avcodec/directx_va.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/codec/avcodec/directx_va.c b/modules/codec/avcodec/directx_va.c
index 9705ae2f2c..a8645e1e55 100644
--- a/modules/codec/avcodec/directx_va.c
+++ b/modules/codec/avcodec/directx_va.c
@@ -318,6 +318,8 @@ int directx_va_Setup(vlc_va_t *va, directx_sys_t *dx_sys, const AVCodecContext *
int err = va_pool_SetupDecoder(va, &dx_sys->va_pool, avctx, surface_count, surface_alignment);
if (err != VLC_SUCCESS)
return err;
+ if (dx_sys->can_extern_pool)
+ return VLC_SUCCESS;
return va_pool_SetupSurfaces(va, &dx_sys->va_pool, surface_count);
}
--
2.12.1
More information about the vlc-devel
mailing list