mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
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
This commit is contained in:
parent
95c2638ba5
commit
1472dd3d58
1 changed files with 3 additions and 4 deletions
|
@ -432,10 +432,9 @@ gst_dash_demux_change_state (GstElement * element, GstStateChange transition)
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
_check_queue_full (GstDataQueue * q, guint visible, guint bytes, guint64 time,
|
_check_queue_full (GstDataQueue * q, guint visible, guint bytes, guint64 time,
|
||||||
GstDashDemuxStream * stream)
|
GstDashDemux * demux)
|
||||||
{
|
{
|
||||||
/* TODO add limits */
|
return time <= demux->max_buffering_time;
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -703,7 +702,7 @@ gst_dash_demux_setup_all_streams (GstDashDemux * demux)
|
||||||
caps = gst_dash_demux_get_input_caps (demux, active_stream);
|
caps = gst_dash_demux_get_input_caps (demux, active_stream);
|
||||||
stream->queue =
|
stream->queue =
|
||||||
gst_data_queue_new ((GstDataQueueCheckFullFunction) _check_queue_full,
|
gst_data_queue_new ((GstDataQueueCheckFullFunction) _check_queue_full,
|
||||||
NULL, NULL, stream);
|
NULL, NULL, demux);
|
||||||
|
|
||||||
stream->index = i;
|
stream->index = i;
|
||||||
stream->input_caps = caps;
|
stream->input_caps = caps;
|
||||||
|
|
Loading…
Reference in a new issue