msdkcontext: g_object_new() must not return nullptr

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3301>
This commit is contained in:
Tong Wu 2022-10-31 16:56:32 +08:00 committed by tong1wu
parent 7b03da634b
commit c9cc92a20a

View file

@ -419,8 +419,6 @@ gst_msdk_context_new_with_va_display (GstObject * display_obj,
return NULL;
obj = g_object_new (GST_TYPE_MSDK_CONTEXT, NULL);
if (!obj)
return NULL;
priv = obj->priv;
priv->display = g_object_ref (va_display);