From: Jan Alexander Steffens (heftig) Date: Fri, 27 Jun 2014 10:24:49 +0000 (+0200) Subject: rtmpsrc: Report limited bandwidth X-Git-Tag: 1.4.0~91 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=86080cb5cc8fc22e79a75387cc7110a09dea4064;p=platform%2Fupstream%2Fgst-plugins-bad.git rtmpsrc: Report limited bandwidth Makes uridecodebin treat this source as a stream source, allowing timeshifting. https://bugzilla.gnome.org/show_bug.cgi?id=732335 --- 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;