[vlc-devel] [PATCH 2/8] d3d11va: fix error returned when we can't get an YV12 filter

Steve Lhomme robux4 at videolabs.io
Tue Sep 6 11:52:34 CEST 2016


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

diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index 913a8b9..41f7f10 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -485,7 +485,10 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt,
     {
         sys->filter = CreateFilter( VLC_OBJECT(va), fmt, sys->i_chroma);
         if (sys->filter == NULL)
+        {
+            err = VLC_EGENERIC;
             goto error;
+        }
     }
 
     err = directx_va_Setup(va, &sys->dx_sys, ctx);
-- 
2.8.2



More information about the vlc-devel mailing list