diff options
author | Thiago Santos <thiago.sousa.santos@collabora.com> | 2013-07-03 16:38:33 -0300 |
---|---|---|
committer | Thiago Santos <thiago.sousa.santos@collabora.com> | 2013-07-09 01:18:54 -0300 |
commit | 1472dd3d58b6908962cae575b9080242423c96cc (patch) | |
tree | 19a0f3a43ba6bae8c1272975ac7300c15649bcd8 | |
parent | 95c2638ba55be2b2f1394f56ec34e89db4b857dc (diff) | |
download | gstreamer-plugins-bad-1472dd3d58b6908962cae575b9080242423c96cc.tar.gz |
dashdemux: implement queue full check function
Checks if the queue is full according to max buffering time
set by the user
https://bugzilla.gnome.org/show_bug.cgi?id=701404
-rw-r--r-- | ext/dash/gstdashdemux.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index df4b9533b..a14be7464 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -432,10 +432,9 @@ gst_dash_demux_change_state (GstElement * element, GstStateChange transition) static gboolean _check_queue_full (GstDataQueue * q, guint visible, guint bytes, guint64 time, - GstDashDemuxStream * stream) + GstDashDemux * demux) { - /* TODO add limits */ - return FALSE; + return time <= demux->max_buffering_time; } static void @@ -703,7 +702,7 @@ gst_dash_demux_setup_all_streams (GstDashDemux * demux) caps = gst_dash_demux_get_input_caps (demux, active_stream); stream->queue = gst_data_queue_new ((GstDataQueueCheckFullFunction) _check_queue_full, - NULL, NULL, stream); + NULL, NULL, demux); stream->index = i; stream->input_caps = caps; |