projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba07768
)
d3d11device: Drop floating reference count
author
Seungha Yang
<seungha@centricular.com>
Tue, 21 Apr 2020 06:27:56 +0000
(15:27 +0900)
committer
Seungha Yang
<seungha@centricular.com>
Tue, 21 Apr 2020 06:32:26 +0000
(15:32 +0900)
... and use gst_object_unref instead of g_object_unref for tracer
to be happy.
sys/d3d11/gstd3d11device.c
patch
|
blob
|
history
diff --git
a/sys/d3d11/gstd3d11device.c
b/sys/d3d11/gstd3d11device.c
index 75e8b1362f9f9deb866f18c58dc71c5b6d69ae97..4265e63512b0d8c81d665cbfd4b07d6d17bae4dc 100644
(file)
--- a/
sys/d3d11/gstd3d11device.c
+++ b/
sys/d3d11/gstd3d11device.c
@@
-793,8
+793,9
@@
gst_d3d11_device_new (guint adapter)
if (!priv->device || !priv->device_context) {
GST_WARNING ("Cannot create d3d11 device with adapter %d", adapter);
- g_object_unref (device);
- device = NULL;
+ gst_clear_object (&device);
+ } else {
+ gst_object_ref_sink (device);
}
return device;