From b857cb38ddb63af8ba745c10bece8f1b528af4fe Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Sun, 31 Mar 2013 12:05:49 +0200 Subject: [PATCH] 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 --- ext/soup/gstsouphttpsrc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/soup/gstsouphttpsrc.c b/ext/soup/gstsouphttpsrc.c index 58210e4..a7bac17 100644 --- a/ext/soup/gstsouphttpsrc.c +++ b/ext/soup/gstsouphttpsrc.c @@ -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; -- 2.7.4