hlsdemux: check if the task's cond was signaled because it's the end of playlist

This commit is contained in:
Andoni Morales Alastruey 2011-03-29 23:06:14 +02:00 committed by Sebastian Dröge
parent 42470cd313
commit 77c0971b62

View file

@ -532,6 +532,11 @@ gst_hls_demux_loop (GstHLSDemux * demux)
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);
ret = gst_pad_push (demux->srcpad, buf);
if (ret != GST_FLOW_OK)