msdkcontext: use gst_object_ref for GstVaDisplay
authorTong Wu <tong1.wu@intel.com>
Mon, 31 Oct 2022 08:59:18 +0000 (16:59 +0800)
committertong1wu <tong1.wu@intel.com>
Wed, 2 Nov 2022 07:40:59 +0000 (07:40 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3301>

subprojects/gst-plugins-bad/sys/msdk/gstmsdkcontext.c

index 93736d7..00ae06b 100644 (file)
@@ -421,7 +421,7 @@ gst_msdk_context_new_with_va_display (GstObject * display_obj,
   obj = g_object_new (GST_TYPE_MSDK_CONTEXT, NULL);
 
   priv = obj->priv;
-  priv->display = g_object_ref (va_display);
+  priv->display = gst_object_ref (va_display);
 
   priv->job_type = job_type;
   priv->hardware = hardware;