summaryrefslogtreecommitdiff
path: root/gst-libs/gst/vaapi/gstvaapisurface_drm.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapisurface_drm.c')
-rw-r--r--gst-libs/gst/vaapi/gstvaapisurface_drm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapisurface_drm.c b/gst-libs/gst/vaapi/gstvaapisurface_drm.c
index cbd7d717..a7e33e01 100644
--- a/gst-libs/gst/vaapi/gstvaapisurface_drm.c
+++ b/gst-libs/gst/vaapi/gstvaapisurface_drm.c
@@ -39,7 +39,8 @@ gst_vaapi_surface_get_drm_buf_handle (GstVaapiSurface * surface, guint type)
/* The proxy takes ownership if the image, even creation failure. */
proxy =
gst_vaapi_buffer_proxy_new_from_object (GST_VAAPI_OBJECT (surface),
- image->internal_image.buf, type, gst_vaapi_object_unref, image);
+ image->internal_image.buf, type, (GDestroyNotify) gst_vaapi_image_unref,
+ image);
if (!proxy)
goto error_alloc_export_buffer;
return proxy;