[vlc-commits] vaapi: use local values instead of stored in the pool instance when possible
Steve Lhomme
git at videolan.org
Mon Dec 2 13:42:59 CET 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Nov 8 14:43:17 2019 +0100| [7217e82a3ad23c3533c05bd29e15971f591362e9] | committer: Steve Lhomme
vaapi: use local values instead of stored in the pool instance when possible
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7217e82a3ad23c3533c05bd29e15971f591362e9
---
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 c2d63baacd..4db2a5d81b 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);
}
@@ -542,7 +542,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:
More information about the vlc-commits
mailing list