pushsrc: Fix infinite recursion in pushsrc query handler

This commit is contained in:
Sebastian Dröge 2011-05-26 14:14:13 +02:00
parent 007b16b024
commit 5076688c1f

View file

@ -92,9 +92,6 @@ static gboolean
gst_push_src_query (GstBaseSrc * src, GstQuery * query)
{
gboolean ret;
GstBaseSrcClass *bclass;
bclass = GST_BASE_SRC_GET_CLASS (src);
switch (GST_QUERY_TYPE (query)) {
case GST_QUERY_SCHEDULING:
@ -106,10 +103,7 @@ gst_push_src_query (GstBaseSrc * src, GstQuery * query)
break;
}
default:
if (bclass->query)
ret = bclass->query (src, query);
else
ret = FALSE;
ret = GST_BASE_SRC_CLASS (parent_class)->query (src, query);
break;
}
return ret;