[vlc-commits] va_surface: remove unused va_pool_Close parameter

Steve Lhomme git at videolan.org
Fri Oct 18 16:53:26 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Oct 18 16:53:20 2019 +0200| [bb5fc952423c1c80337943eabc609707d6c889a1] | committer: Steve Lhomme

va_surface: remove unused va_pool_Close parameter

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

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

diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index bafda9186f..202cb71a20 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -245,7 +245,7 @@ static void Close(vlc_va_t *va)
     vlc_va_sys_t *sys = va->sys;
 
     if (sys->va_pool)
-        va_pool_Close(va, sys->va_pool);
+        va_pool_Close(sys->va_pool);
 
     if (sys->vctx)
         vlc_video_context_Release(sys->vctx);
diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index 5cc97314b0..e6999604fa 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -238,7 +238,7 @@ static void Close(vlc_va_t *va)
     vlc_va_sys_t *sys = va->sys;
 
     if (sys->va_pool)
-        va_pool_Close(va, sys->va_pool);
+        va_pool_Close(sys->va_pool);
 
     if (sys->vctx)
         vlc_video_context_Release(sys->vctx);
diff --git a/modules/codec/avcodec/va_surface.c b/modules/codec/avcodec/va_surface.c
index 9bc67981ac..3b0dd98c14 100644
--- a/modules/codec/avcodec/va_surface.c
+++ b/modules/codec/avcodec/va_surface.c
@@ -168,7 +168,7 @@ unsigned va_surface_GetIndex(vlc_va_surface_t *surface)
     return surface->index;
 }
 
-void va_pool_Close(vlc_va_t *va, va_pool_t *va_pool)
+void va_pool_Close(va_pool_t *va_pool)
 {
     for (unsigned i = 0; i < va_pool->surface_count; i++)
         va_surface_Release(&va_pool->surface[i]);
diff --git a/modules/codec/avcodec/va_surface_internal.h b/modules/codec/avcodec/va_surface_internal.h
index c2c39bf9ca..3c6a49b4cd 100644
--- a/modules/codec/avcodec/va_surface_internal.h
+++ b/modules/codec/avcodec/va_surface_internal.h
@@ -58,7 +58,7 @@ struct va_pool_cfg {
 };
 
 va_pool_t * va_pool_Create(vlc_va_t *, const struct va_pool_cfg *);
-void va_pool_Close(vlc_va_t *va, va_pool_t *);
+void va_pool_Close(va_pool_t *);
 int va_pool_SetupDecoder(vlc_va_t *, va_pool_t *, const AVCodecContext *, const video_format_t *, unsigned count);
 vlc_va_surface_t *va_pool_Get(va_pool_t *);
 



More information about the vlc-commits mailing list