[vlc-commits] dxva: fix compilation warning
Steve Lhomme
git at videolan.org
Thu Jun 22 17:25:58 CEST 2017
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Wed Jun 21 09:36:13 2017 +0200| [964dd34ceacf1583f38de91227447329748f4cd7] | committer: Jean-Baptiste Kempf
dxva: fix compilation warning
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=964dd34ceacf1583f38de91227447329748f4cd7
---
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;
}
/* */
More information about the vlc-commits
mailing list