From 7ef8f457a8631ff09a928ee5aa6bb3f5fabfce11 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 15 Jul 2015 13:30:32 +0200 Subject: vaapi: destroy derived VAImage after each use Appears to be required by some hardware. Whatever. --- video/vaapi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/video/vaapi.c b/video/vaapi.c index ed021cfdd1..9bc5953ad0 100644 --- a/video/vaapi.c +++ b/video/vaapi.c @@ -395,6 +395,8 @@ int va_surface_upload(struct mp_image *va_dst, struct mp_image *sw_src) return -1; } + if (p->is_derived) + va_surface_image_destroy(p); return 0; } @@ -433,6 +435,8 @@ static struct mp_image *try_download(struct mp_image *src, } va_image_unmap(p->ctx, image); } + if (p->is_derived) + va_surface_image_destroy(p); return dst; } -- cgit v1.2.3