[vlc-commits] directx_va: remove unused parameter

Steve Lhomme git at videolan.org
Thu Jun 22 17:26:34 CEST 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Wed Jun 21 13:27:58 2017 +0200| [14ca39de8d77abbdaa14d1315f64a04870fd7ec8] | committer: Jean-Baptiste Kempf

directx_va: remove unused parameter

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=14ca39de8d77abbdaa14d1315f64a04870fd7ec8
---

 modules/codec/avcodec/directx_va.c          | 2 +-
 modules/codec/avcodec/va_surface.c          | 3 +--
 modules/codec/avcodec/va_surface_internal.h | 2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/modules/codec/avcodec/directx_va.c b/modules/codec/avcodec/directx_va.c
index 172044d8b7..d40f285733 100644
--- a/modules/codec/avcodec/directx_va.c
+++ b/modules/codec/avcodec/directx_va.c
@@ -330,7 +330,7 @@ int directx_va_Open(vlc_va_t *va, directx_sys_t *dx_sys,
         msg_Dbg(va, "DLLs loaded");
     }
 
-    if (va_pool_Open(va, &dx_sys->va_pool, ctx, fmt) != VLC_SUCCESS)
+    if (va_pool_Open(va, &dx_sys->va_pool, ctx) != VLC_SUCCESS)
         goto error;
 
     /* */
diff --git a/modules/codec/avcodec/va_surface.c b/modules/codec/avcodec/va_surface.c
index ae893defbd..7652f52c5c 100644
--- a/modules/codec/avcodec/va_surface.c
+++ b/modules/codec/avcodec/va_surface.c
@@ -163,8 +163,7 @@ void va_pool_Close(vlc_va_t *va, va_pool_t *va_pool)
     va_pool->pf_destroy_device(va);
 }
 
-int va_pool_Open(vlc_va_t *va, va_pool_t *va_pool,
-                    AVCodecContext *ctx, const es_format_t *fmt)
+int va_pool_Open(vlc_va_t *va, va_pool_t *va_pool, AVCodecContext *ctx)
 {
     va_pool->codec_id = ctx->codec_id;
 
diff --git a/modules/codec/avcodec/va_surface_internal.h b/modules/codec/avcodec/va_surface_internal.h
index 7ae3f36e7b..36f8b68656 100644
--- a/modules/codec/avcodec/va_surface_internal.h
+++ b/modules/codec/avcodec/va_surface_internal.h
@@ -73,7 +73,7 @@ typedef struct
 
 } va_pool_t;
 
-int va_pool_Open(vlc_va_t *, va_pool_t *, AVCodecContext *, const es_format_t *);
+int va_pool_Open(vlc_va_t *, va_pool_t *, AVCodecContext *);
 void va_pool_Close(vlc_va_t *va, va_pool_t *);
 int va_pool_Setup(vlc_va_t *, va_pool_t *, AVCodecContext *, unsigned count, int alignment);
 vlc_va_surface_t *va_pool_Get(vlc_va_t *, va_pool_t *);



More information about the vlc-commits mailing list