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

Steve Lhomme robux4 at ycbcr.xyz
Mon Sep 21 08:29:50 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..d2df4bf2eb0 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_HasChainedPics(clone));
         atomic_fetch_add_explicit(&pool->refs, 1, memory_order_relaxed);
     }
     return clone;
-- 
2.26.2



More information about the vlc-devel mailing list