mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
hlsdemux: check if the task's cond was signaled because it's the end of playlist
This commit is contained in:
parent
42470cd313
commit
77c0971b62
1 changed files with 5 additions and 0 deletions
|
@ -532,6 +532,11 @@ gst_hls_demux_loop (GstHLSDemux * demux)
|
||||||
GST_TASK_WAIT (demux->task);
|
GST_TASK_WAIT (demux->task);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Check again if it's the end of the playlist in case we we reached */
|
||||||
|
if (demux->end_of_playlist) {
|
||||||
|
goto end_of_playlist;
|
||||||
|
}
|
||||||
|
|
||||||
buf = g_queue_pop_head (demux->queue);
|
buf = g_queue_pop_head (demux->queue);
|
||||||
ret = gst_pad_push (demux->srcpad, buf);
|
ret = gst_pad_push (demux->srcpad, buf);
|
||||||
if (ret != GST_FLOW_OK)
|
if (ret != GST_FLOW_OK)
|
||||||
|
|
Loading…
Reference in a new issue