[vlc-commits] va_surface: store the va_pool in each surface

Steve Lhomme git at videolan.org
Fri Oct 18 14:50:35 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Oct 18 14:01:37 2019 +0200| [6f50851498bcb3c7c309a99d247337f4a8b2bca3] | committer: Steve Lhomme

va_surface: store the va_pool in each surface

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

 modules/codec/avcodec/va_surface.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/codec/avcodec/va_surface.c b/modules/codec/avcodec/va_surface.c
index 1441340002..52a9e3e5d1 100644
--- a/modules/codec/avcodec/va_surface.c
+++ b/modules/codec/avcodec/va_surface.c
@@ -56,6 +56,7 @@ struct vlc_va_surface_t {
     unsigned             index;
     atomic_uintptr_t     refcount; // 1 ref for the surface existance, 1 per surface/clone in-flight
     picture_context_t    *pic_va_ctx;
+    va_pool_t            *va_pool;
 };
 
 static void ReleasePoolSurfaces(va_pool_t *va_pool)
@@ -116,6 +117,7 @@ static int SetupSurfaces(vlc_va_t *va, va_pool_t *va_pool)
         if (unlikely(p_surface==NULL))
             goto done;
         p_surface->index = i;
+        p_surface->va_pool = va_pool;
         p_surface->pic_va_ctx = va_pool->callbacks.pf_new_surface_context(va, i, p_surface);
         if (unlikely(p_surface->pic_va_ctx==NULL))
         {



More information about the vlc-commits mailing list