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/out/vo_vaapi.c | |
parent | d53c0604ca796020e5ac26f08c0d6fd0c8201718 (diff) |
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/out/vo_vaapi.c')
-rw-r--r-- | video/out/vo_vaapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_vaapi.c b/video/out/vo_vaapi.c index a3f701519d..c8ffffcb1e 100644 --- a/video/out/vo_vaapi.c +++ b/video/out/vo_vaapi.c @@ -816,7 +816,7 @@ static int preinit(struct vo *vo) if (!p->image_formats) goto fail; - p->pool = mp_image_pool_new(MAX_OUTPUT_SURFACES + 3); + p->pool = mp_image_pool_new(p); va_pool_set_allocator(p->pool, p->mpvaapi, VA_RT_FORMAT_YUV420); int max_subpic_formats = vaMaxNumSubpictureFormats(p->display); |