[vlc-devel] [PATCH 25/36] vaapi: use local values instead of stored in the pool instance when possible
Steve Lhomme
robux4 at ycbcr.xyz
Thu Nov 21 15:14:16 CET 2019
---
modules/hw/vaapi/vlc_vaapi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/hw/vaapi/vlc_vaapi.c b/modules/hw/vaapi/vlc_vaapi.c
index 7777a757946..bf87cf0668e 100644
--- a/modules/hw/vaapi/vlc_vaapi.c
+++ b/modules/hw/vaapi/vlc_vaapi.c
@@ -430,7 +430,7 @@ pool_pic_destroy_cb(picture_t *pic)
if (atomic_fetch_sub(&instance->pic_refcount, 1) == 1)
{
- vaDestroySurfaces(instance->va_dpy, instance->render_targets,
+ vaDestroySurfaces(p_sys->ctx.ctx.va_dpy, instance->render_targets,
instance->num_render_targets);
free(instance);
}
@@ -543,7 +543,7 @@ error_pic:
while (count > 0)
picture_Release(pics[--count]);
- VA_CALL(o, vaDestroySurfaces, instance->va_dpy, instance->render_targets,
+ VA_CALL(o, vaDestroySurfaces, dpy, instance->render_targets,
instance->num_render_targets);
error:
--
2.17.1
More information about the vlc-devel
mailing list