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:
a854a1f
)
padtemplate: mark documentation caps as may be leaked
author
Matthew Waters
<matthew@centricular.com>
Wed, 30 Sep 2020 01:56:40 +0000
(11:56 +1000)
committer
Matthew Waters
<matthew@centricular.com>
Wed, 30 Sep 2020 01:59:04 +0000
(11:59 +1000)
The template itself is already marked as such and the caps, the
documentation caps are a logical extension of those two.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/650>
gst/gstpadtemplate.c
patch
|
blob
|
history
diff --git
a/gst/gstpadtemplate.c
b/gst/gstpadtemplate.c
index
8e7b369
..
606440f
100644
(file)
--- a/
gst/gstpadtemplate.c
+++ b/
gst/gstpadtemplate.c
@@
-498,6
+498,8
@@
gst_pad_template_set_documentation_caps (GstPadTemplate * templ, GstCaps * caps)
g_return_if_fail (GST_IS_PAD_TEMPLATE (templ));
g_return_if_fail (GST_IS_CAPS (caps));
+ if (caps)
+ GST_MINI_OBJECT_FLAG_SET (caps, GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED);
gst_caps_replace (&(((GstPadTemplate *) (templ))->ABI.abi.documentation_caps),
caps);
}