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