summaryrefslogtreecommitdiff
path: root/gst/vaapi/gstvaapipluginbase.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/vaapi/gstvaapipluginbase.c')
-rw-r--r--gst/vaapi/gstvaapipluginbase.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/vaapi/gstvaapipluginbase.c b/gst/vaapi/gstvaapipluginbase.c
index db088be9..eba6efd7 100644
--- a/gst/vaapi/gstvaapipluginbase.c
+++ b/gst/vaapi/gstvaapipluginbase.c
@@ -156,7 +156,7 @@ _set_cached_surface (GstBuffer * buf, GstVaapiSurface * surface)
{
return gst_mini_object_set_qdata (GST_MINI_OBJECT (buf),
g_quark_from_static_string ("GstVaapiDMABufSurface"), surface,
- (GDestroyNotify) gst_vaapi_object_unref);
+ (GDestroyNotify) gst_vaapi_surface_unref);
}
static gboolean
@@ -1387,7 +1387,7 @@ extract_allowed_surface_formats (GstVaapiDisplay * display,
if (!image) {
/* Just reuse the surface if the format is specified */
if (specified_format == GST_VIDEO_FORMAT_UNKNOWN)
- gst_vaapi_object_replace (&surface, NULL);
+ gst_mini_object_replace ((GstMiniObject **) & surface, NULL);
continue;
}
@@ -1404,11 +1404,11 @@ extract_allowed_surface_formats (GstVaapiDisplay * display,
gst_vaapi_image_unref (image);
/* Just reuse the surface if the format is specified */
if (specified_format == GST_VIDEO_FORMAT_UNKNOWN)
- gst_vaapi_object_replace (&surface, NULL);
+ gst_mini_object_replace ((GstMiniObject **) & surface, NULL);
}
if (surface)
- gst_vaapi_object_unref (surface);
+ gst_vaapi_surface_unref (surface);
if (out_formats->len == 0) {
g_array_unref (out_formats);