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:
8cf0df1
)
gst: Add support for g_autoptr(GstPromise)
author
Niels De Graef
<niels.degraef@barco.com>
Wed, 8 May 2019 10:11:50 +0000
(12:11 +0200)
committer
Tim-Philipp Müller
<tim@centricular.com>
Wed, 7 Aug 2019 12:53:41 +0000
(13:53 +0100)
gst/gstpromise.h
patch
|
blob
|
history
diff --git
a/gst/gstpromise.h
b/gst/gstpromise.h
index
eaf1e95
..
a09cc4f
100644
(file)
--- a/
gst/gstpromise.h
+++ b/
gst/gstpromise.h
@@
-124,6
+124,10
@@
gst_promise_unref (GstPromise * promise)
gst_mini_object_unref (GST_MINI_OBJECT_CAST (promise));
}
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstPromise, gst_promise_unref)
+#endif
+
G_END_DECLS
#endif /* __GST_PROMISE_H__ */