mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
hlsdemux: Start fetching new fragments whenever we have less fragments cached than given by the fragments-cache property
Waiting until our cache is empty before starting to fetch the next fragment kind of defeats the purpose of caching multiple fragments.
This commit is contained in:
parent
89c592ccdd
commit
4f04f3e68e
1 changed files with 1 additions and 1 deletions
|
@ -921,7 +921,7 @@ gst_hls_demux_updates_loop (GstHLSDemux * demux)
|
|||
goto quit;
|
||||
|
||||
/* fetch the next fragment */
|
||||
if (g_queue_is_empty (demux->queue)) {
|
||||
if (g_queue_get_length (demux->queue) < demux->fragments_cache) {
|
||||
GST_DEBUG_OBJECT (demux, "queue empty, get next fragment");
|
||||
if (!gst_hls_demux_get_next_fragment (demux, FALSE)) {
|
||||
if (demux->cancelled) {
|
||||
|
|
Loading…
Reference in a new issue