mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +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,15 +557,14 @@ gst_hls_demux_loop (GstHLSDemux * demux)
|
|||
}
|
||||
|
||||
if (g_queue_is_empty (demux->queue)) {
|
||||
if (demux->end_of_playlist) {
|
||||
if (demux->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 */
|
||||
if (demux->end_of_playlist) {
|
||||
goto end_of_playlist;
|
||||
GST_TASK_WAIT (demux->task);
|
||||
/* 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;
|
||||
}
|
||||
|
||||
buf = g_queue_pop_head (demux->queue);
|
||||
|
|
Loading…
Reference in a new issue