[vlc-devel] [PATCH 2/3] picture_pool: rename picture_pool_ReleasePicture to picture_pool_ReleaseClone

Steve Lhomme robux4 at ycbcr.xyz
Mon Jul 27 15:36:32 CEST 2020


It doesn't actually release a picture from the pool, just the clones.
---
 src/misc/picture_pool.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/misc/picture_pool.c b/src/misc/picture_pool.c
index 5f0f41eba8e..a942a697995 100644
--- a/src/misc/picture_pool.c
+++ b/src/misc/picture_pool.c
@@ -65,7 +65,7 @@ void picture_pool_Release(picture_pool_t *pool)
     picture_pool_Destroy(pool);
 }
 
-static void picture_pool_ReleasePicture(picture_t *clone)
+static void picture_pool_ReleaseClone(picture_t *clone)
 {
     picture_priv_t *priv = (picture_priv_t *)clone;
     uintptr_t sys = (uintptr_t)priv->gc.opaque;
@@ -90,7 +90,7 @@ static picture_t *picture_pool_ClonePicture(picture_pool_t *pool,
     picture_t *picture = pool->picture[offset];
     uintptr_t sys = ((uintptr_t)pool) + offset;
 
-    return picture_InternalClone(picture, picture_pool_ReleasePicture,
+    return picture_InternalClone(picture, picture_pool_ReleaseClone,
                                  (void*)sys);
 }
 
-- 
2.26.2



More information about the vlc-devel mailing list