Commit 484c3272 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

staticpadtemplate: Update docs of gst_static_pad_template_get_caps ()

gst_static_pad_template_get_caps () actually returns a reference to the
caps and it's cleaner to unref them after usage. The core will, however,
always hold a reference to the caps so this didn't result in a memory
leak.
parent dafde2ed
...@@ -378,8 +378,10 @@ gst_pad_template_new (const gchar * name_template, ...@@ -378,8 +378,10 @@ gst_pad_template_new (const gchar * name_template,
* *
* Gets the capabilities of the static pad template. * Gets the capabilities of the static pad template.
* *
* Returns: the #GstCaps of the static pad template. If you need to keep a * Returns: the #GstCaps of the static pad template.
* reference to the caps, take a ref (see gst_caps_ref ()). * Unref after usage. Since the core holds an additional
* ref to the returned caps, use gst_caps_make_writable()
* on the returned caps to modify it.
*/ */
GstCaps * GstCaps *
gst_static_pad_template_get_caps (GstStaticPadTemplate * templ) gst_static_pad_template_get_caps (GstStaticPadTemplate * templ)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment