d3d11device: Drop floating reference count

... and use gst_object_unref instead of g_object_unref for tracer
to be happy.
This commit is contained in:
Seungha Yang 2020-04-21 15:27:56 +09:00
parent ba07768ca4
commit 64a015d51f

View file

@ -793,8 +793,9 @@ gst_d3d11_device_new (guint adapter)
if (!priv->device || !priv->device_context) { if (!priv->device || !priv->device_context) {
GST_WARNING ("Cannot create d3d11 device with adapter %d", adapter); GST_WARNING ("Cannot create d3d11 device with adapter %d", adapter);
g_object_unref (device); gst_clear_object (&device);
device = NULL; } else {
gst_object_ref_sink (device);
} }
return device; return device;