vaapi: destroy derived VAImage after each use

Appears to be required by some hardware. Whatever.
This commit is contained in:
wm4
2015-07-15 13:30:32 +02:00
parent bc68794acc
commit 7ef8f457a8

View File

@@ -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;
}