souphttpsrc: basic scheduling query support

Answer to scheduling queries with default parameters and the new
_BANDWIDTH_LIMITED_FLAG so that downstream is advised to minimize seek
operations and perform on-disk buffering if possible.

Bug 693484
This commit is contained in:
Philippe Normand 2013-03-31 12:05:49 +02:00 committed by Sebastian Dröge
parent baa23d314d
commit b857cb38dd

View file

@ -1366,6 +1366,11 @@ gst_soup_http_src_query (GstBaseSrc * bsrc, GstQuery * query)
gst_query_set_uri (query, src->location);
ret = TRUE;
break;
case GST_QUERY_SCHEDULING:
gst_query_set_scheduling (query, GST_SCHEDULING_FLAG_BANDWIDTH_LIMITED, 1,
-1, 0);
ret = TRUE;
break;
default:
ret = FALSE;
break;