summaryrefslogtreecommitdiff
path: root/gst-libs/gst/vaapi/gstvaapisurface_drm.c
diff options
context:
space:
mode:
authorHe Junyan <junyan.he@hotmail.com>2019-12-19 14:19:10 +0100
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2019-12-20 05:01:08 +0000
commit608ce681e5dd51460c2fe5ff0be110fc40a4618a (patch)
treebced9b025c03316ab7a93231433b9d8f6f069746 /gst-libs/gst/vaapi/gstvaapisurface_drm.c
parente398f2c24571fdc5c4a8256fddedbee2d26e515f (diff)
libs: surface: port to GstMiniObject
GstVaapiMiniObject and GstVaapiObject are deprecated. This is the first step to remove them by porting GstVaapiSurface as a GstMiniBuffer descendant. Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapisurface_drm.c')
-rw-r--r--gst-libs/gst/vaapi/gstvaapisurface_drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapisurface_drm.c b/gst-libs/gst/vaapi/gstvaapisurface_drm.c
index a7e33e01..7587553a 100644
--- a/gst-libs/gst/vaapi/gstvaapisurface_drm.c
+++ b/gst-libs/gst/vaapi/gstvaapisurface_drm.c
@@ -38,7 +38,7 @@ 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),
+ gst_vaapi_buffer_proxy_new_from_object (GST_MINI_OBJECT_CAST (surface),
image->internal_image.buf, type, (GDestroyNotify) gst_vaapi_image_unref,
image);
if (!proxy)