[vlc-devel] [PATCH] directx_va: log when we don't create the VA because we don't have dimensions yet

Steve Lhomme robux4 at videolabs.io
Fri May 5 10:16:36 CEST 2017


---
 modules/codec/avcodec/directx_va.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/codec/avcodec/directx_va.c b/modules/codec/avcodec/directx_va.c
index d114feac79..eb7b8effd9 100644
--- a/modules/codec/avcodec/directx_va.c
+++ b/modules/codec/avcodec/directx_va.c
@@ -284,7 +284,10 @@ int directx_va_Setup(vlc_va_t *va, directx_sys_t *dx_sys, AVCodecContext *avctx)
 
     avctx->hwaccel_context = NULL;
     if (avctx->coded_width <= 0 || avctx->coded_height <= 0)
+    {
+        msg_Dbg(va, "directx_va_Setup coded size not provided");
         return VLC_EGENERIC;
+    }
 
     /* */
     msg_Dbg(va, "directx_va_Setup id %d %dx%d", dx_sys->codec_id, avctx->coded_width, avctx->coded_height);
-- 
2.12.1



More information about the vlc-devel mailing list