diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2013-05-12 18:51:52 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2013-05-12 18:52:56 +0100 |
commit | b3e70d30cf84adfd5a12b3aed4b77f4e52c45f76 (patch) | |
tree | cecdf8a11e39a5f6fcb2e93a1673d368892dac0f /ext/neon | |
parent | e1f4f5ccaa336cbb4997c4a37e89b2fbac2c7f02 (diff) | |
download | gstreamer-plugins-bad-b3e70d30cf84adfd5a12b3aed4b77f4e52c45f76.tar.gz |
neonhttpsrc: add support for SCHEDULING query
Diffstat (limited to 'ext/neon')
-rw-r--r-- | ext/neon/gstneonhttpsrc.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/neon/gstneonhttpsrc.c b/ext/neon/gstneonhttpsrc.c index ca10cd268..e20b509c5 100644 --- a/ext/neon/gstneonhttpsrc.c +++ b/ext/neon/gstneonhttpsrc.c @@ -694,6 +694,20 @@ gst_neonhttp_src_query (GstBaseSrc * bsrc, GstQuery * query) if (!ret) ret = GST_BASE_SRC_CLASS (parent_class)->query (bsrc, query); + switch (GST_QUERY_TYPE (query)) { + case GST_QUERY_SCHEDULING:{ + GstSchedulingFlags flags; + gint minsize, maxsize, align; + + gst_query_parse_scheduling (query, &flags, &minsize, &maxsize, &align); + flags |= GST_SCHEDULING_FLAG_BANDWIDTH_LIMITED; + gst_query_set_scheduling (query, flags, minsize, maxsize, align); + break; + } + default: + break; + } + return ret; } |