diff options
author | wm4 <wm4@nowhere> | 2018-01-12 01:40:01 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-01-13 03:26:45 -0800 |
commit | 83ab873497e8b295d32ee364ef64c4533db5a048 (patch) | |
tree | 1185a249ac7c49d8b5859830c98b25abae6a63ae /video/mp_image_pool.h | |
parent | d53c0604ca796020e5ac26f08c0d6fd0c8201718 (diff) | |
download | mpv-83ab873497e8b295d32ee364ef64c4533db5a048.tar.bz2 mpv-83ab873497e8b295d32ee364ef64c4533db5a048.tar.xz |
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.
Diffstat (limited to 'video/mp_image_pool.h')
-rw-r--r-- | video/mp_image_pool.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |