mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
hlsdemux: fix handling of end of playlist
Don't send the EOS event until we reached the end of the playlist and the queue is really empty.
This commit is contained in:
parent
c890a212b6
commit
9454003249
1 changed files with 6 additions and 7 deletions
|
@ -557,14 +557,13 @@ gst_hls_demux_loop (GstHLSDemux * demux)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_queue_is_empty (demux->queue)) {
|
if (g_queue_is_empty (demux->queue)) {
|
||||||
if (demux->end_of_playlist) {
|
if (demux->end_of_playlist)
|
||||||
goto end_of_playlist;
|
goto end_of_playlist;
|
||||||
}
|
|
||||||
GST_TASK_WAIT (demux->task);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Check again if it's the end of the playlist in case we we reached */
|
GST_TASK_WAIT (demux->task);
|
||||||
if (demux->end_of_playlist) {
|
/* If the queue is still empty check again if it's the end of the
|
||||||
|
* playlist in case we reached it after beeing woken up */
|
||||||
|
if (g_queue_is_empty (demux->queue) && demux->end_of_playlist)
|
||||||
goto end_of_playlist;
|
goto end_of_playlist;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue