mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +00:00
padtemplate: mark documentation caps as may be leaked
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>
This commit is contained in:
parent
a854a1feda
commit
19fb999e09
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue