summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-08-13 12:37:08 +0300
committerSebastian Dröge <sebastian@centricular.com>2014-08-13 12:37:08 +0300
commit82e01491a0728873d0138cc988d319b549639269 (patch)
tree27837456aefc1f0ba94189330e22247e35881de3
parentee662efdd17857e30c21fce32643226c586fe666 (diff)
element: Clarify docs about gst_element_get_request_pad() and remove deprecation part
This function is not really pad or slow for the common case of requesting a pad with the name of the template. It is only slower if you to name your pads directly instead of letting the element handle it. Also there's no reason to deprecate it in favor of a more complicated function for the common case.
-rw-r--r--gst/gstelement.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/gstelement.c b/gst/gstelement.c
index 3fbe7fe54..3d8f7f63d 100644
--- a/gst/gstelement.c
+++ b/gst/gstelement.c
@@ -975,8 +975,9 @@ _gst_element_request_pad (GstElement * element, GstPadTemplate * templ,
* retrieves request pads. The pad should be released with
* gst_element_release_request_pad().
*
- * This method is slow and will be deprecated in the future. New code should
- * use gst_element_request_pad() with the requested template.
+ * This method is slower than manually getting the pad template and calling
+ * gst_element_request_pad() if the pads should have a specific name (e.g.
+ * @name is "src_1" instead of "src_%u").
*
* Returns: (transfer full) (nullable): requested #GstPad if found,
* otherwise %NULL. Release after usage.