mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 13:21:28 +00:00
padtemplate: Directly unreference the documentation caps
The public-facing API has a (valid) protection against NULL caps. We can just directly remove it. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/515>
This commit is contained in:
parent
ba0ffeb36c
commit
221cb03664
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ gst_pad_template_dispose (GObject * object)
|
|||
gst_caps_unref (GST_PAD_TEMPLATE_CAPS (templ));
|
||||
}
|
||||
|
||||
gst_pad_template_set_documentation_caps (templ, NULL);
|
||||
gst_caps_replace (&templ->ABI.abi.documentation_caps, NULL);
|
||||
|
||||
G_OBJECT_CLASS (parent_class)->dispose (object);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue