[vlc-devel] [PATCH 01/23] dxva: fix compilation warning

Steve Lhomme robux4 at videolabs.io
Wed Jun 21 14:14:46 CEST 2017


---
 modules/codec/avcodec/d3d11va.c | 2 +-
 modules/codec/avcodec/dxva2.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index 0557cfba09..de70df0b1f 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -453,7 +453,7 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt,
     return VLC_SUCCESS;
 
 error:
-    Close(va, ctx);
+    Close(va, NULL);
     return err;
 }
 
diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index 6a18227409..e59622417a 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -350,7 +350,7 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt,
     return VLC_SUCCESS;
 
 error:
-    Close(va, ctx);
+    Close(va, NULL);
     return VLC_EGENERIC;
 }
 /* */
-- 
2.12.1



More information about the vlc-devel mailing list