From 9f2077918c04edb2d103e980ac1aeb9b7b98489f Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Wed, 8 Feb 2012 15:34:28 +0100 Subject: [PATCH] queue: use default query function to optionally forward query ... rather than querying peer unconditionally with possibly undesirable outcome in case of e.g. SCHEDULING query. --- plugins/elements/gstqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/elements/gstqueue.c b/plugins/elements/gstqueue.c index 5e36a4c..4940b13 100644 --- a/plugins/elements/gstqueue.c +++ b/plugins/elements/gstqueue.c @@ -1224,7 +1224,7 @@ gst_queue_handle_src_query (GstPad * pad, GstObject * parent, GstQuery * query) GstQueue *queue = GST_QUEUE (parent); gboolean res; - res = gst_pad_peer_query (queue->sinkpad, query); + res = gst_pad_query_default (pad, parent, query); if (!res) return FALSE; -- 2.7.4