From 83ab873497e8b295d32ee364ef64c4533db5a048 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 12 Jan 2018 01:40:01 +0100 Subject: video: change some mp_image_pool semantics Remove the max_count creation parameter, because it's pointless and rarely ever did anything. Add a talloc parent parameter instead (which is something completely different, but convenient, and all callers needs to be changed anyway). Instead of clearing the pool when the now removed maximum is reached, clear it on image parameter changes instead. --- video/mp_image_pool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/mp_image_pool.h') diff --git a/video/mp_image_pool.h b/video/mp_image_pool.h index 5f570bc6f6..a49771ffbb 100644 --- a/video/mp_image_pool.h +++ b/video/mp_image_pool.h @@ -5,7 +5,7 @@ struct mp_image_pool; -struct mp_image_pool *mp_image_pool_new(int max_count); +struct mp_image_pool *mp_image_pool_new(void *tparent); struct mp_image *mp_image_pool_get(struct mp_image_pool *pool, int fmt, int w, int h); // the reference to "new" is transferred to the pool -- cgit v1.2.3