[vlc-commits] picture_pool: use the picture_chain API

Steve Lhomme git at videolan.org
Wed Sep 23 16:18:00 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Sep 17 16:45:20 2020 +0200| [aa4f3b1c1eb6fea0b974f201aa7c84e5a168b8ee] | committer: Steve Lhomme

picture_pool: use the picture_chain API

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

 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 988df70fb8..d2df4bf2eb 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;



More information about the vlc-commits mailing list