From 86080cb5cc8fc22e79a75387cc7110a09dea4064 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Fri, 27 Jun 2014 12:24:49 +0200 Subject: [PATCH] rtmpsrc: Report limited bandwidth Makes uridecodebin treat this source as a stream source, allowing timeshifting. https://bugzilla.gnome.org/show_bug.cgi?id=732335 --- ext/rtmp/gstrtmpsrc.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ext/rtmp/gstrtmpsrc.c b/ext/rtmp/gstrtmpsrc.c index f178146..b9ecfcf 100644 --- a/ext/rtmp/gstrtmpsrc.c +++ b/ext/rtmp/gstrtmpsrc.c @@ -435,6 +435,15 @@ gst_rtmp_src_query (GstBaseSrc * basesrc, GstQuery * query) } break; } + case GST_QUERY_SCHEDULING:{ + gst_query_set_scheduling (query, + GST_SCHEDULING_FLAG_SEQUENTIAL | GST_SCHEDULING_FLAG_BANDWIDTH_LIMITED, + 1, -1, 0); + gst_query_add_scheduling_mode (query, GST_PAD_MODE_PUSH); + + ret = TRUE; + break; + } default: ret = FALSE; break; -- 2.7.4