From fdcde50cb0bbdf62e501e77728f36c91ad4e9dd5 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Fri, 26 Jun 2009 12:50:53 +0300 Subject: [PATCH] request-pad: tell about ref counts in release_request_pad docs. It is not too obvious that getting and releasing request pads is not entierly symetrical regarding to the pad refcount. Add a note about that to the docs. This might deserve a FIXME-0.11 too. --- gst/gstelement.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/gstelement.c b/gst/gstelement.c index 2b0e80b..68d63f4 100644 --- a/gst/gstelement.c +++ b/gst/gstelement.c @@ -327,6 +327,10 @@ gst_element_default_error (GObject * object, GstObject * source, GError * error, * Makes the element free the previously requested pad as obtained * with gst_element_get_request_pad(). * + * This does not unref the pad. If the pad was created by using + * gst_element_get_request_pad(), gst_element_release_request_pad() needs to be + * followed by gst_object_unref() to free the @pad. + * * MT safe. */ void -- 2.7.4