summaryrefslogtreecommitdiff
path: root/gst/gstpad.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2011-11-16 17:22:56 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2011-11-16 17:22:56 +0100
commit09a8294d3681f5ab57d7b8978d3c55bda078243f (patch)
tree9b10b99eeb2e86b4b669a53cbd348970911aa595 /gst/gstpad.c
parent54e1174060668ca3f8e332607eed5f7a67644299 (diff)
downloadgstreamer-09a8294d3681f5ab57d7b8978d3c55bda078243f.tar.gz
pad: add parent to the query function
Diffstat (limited to 'gst/gstpad.c')
-rw-r--r--gst/gstpad.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/gstpad.c b/gst/gstpad.c
index 76fab43530..a415288ead 100644
--- a/gst/gstpad.c
+++ b/gst/gstpad.c
@@ -2776,6 +2776,7 @@ done:
/**
* gst_pad_query_default:
* @pad: a #GstPad to call the default query handler on.
+ * @parent: the parent of @pad or NULL
* @query: (transfer none): the #GstQuery to handle.
*
* Invokes the default query handler for the given pad.
@@ -2787,7 +2788,7 @@ done:
* Returns: TRUE if the query was performed successfully.
*/
gboolean
-gst_pad_query_default (GstPad * pad, GstQuery * query)
+gst_pad_query_default (GstPad * pad, GstObject * parent, GstQuery * query)
{
gboolean forward = TRUE, ret = FALSE;
@@ -3182,7 +3183,7 @@ gst_pad_query (GstPad * pad, GstQuery * query)
if ((func = GST_PAD_QUERYFUNC (pad)) == NULL)
goto no_func;
- res = func (pad, query);
+ res = func (pad, parent, query);
RELEASE_PARENT (parent);