[vlc-devel] [PATCH 14/22] picture_pool: use the picture_chain API

Steve Lhomme robux4 at ycbcr.xyz
Thu Sep 17 17:33:36 CEST 2020


---
 src/misc/picture_pool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/misc/picture_pool.c b/src/misc/picture_pool.c
index 988df70fb8d..e8ddd2d862a 100644
--- a/src/misc/picture_pool.c
+++ b/src/misc/picture_pool.c
@@ -93,7 +93,7 @@ static picture_t *picture_pool_ClonePicture(picture_pool_t *pool,
     picture_t *clone = picture_InternalClone(picture, picture_pool_ReleaseClone,
                                  (void*)sys);
     if (clone != NULL) {
-        assert(clone->p_next == NULL);
+        assert(picture_chain_empty(clone));
         atomic_fetch_add_explicit(&pool->refs, 1, memory_order_relaxed);
     }
     return clone;
-- 
2.26.2



More information about the vlc-devel mailing list