mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-09 10:59:39 +00:00
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:
parent
ba07768ca4
commit
64a015d51f
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue