From 1472dd3d58b6908962cae575b9080242423c96cc Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Wed, 3 Jul 2013 16:38:33 -0300 Subject: [PATCH] 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 --- ext/dash/gstdashdemux.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index df4b9533b8..a14be74649 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;