From: Andoni Morales Alastruey Date: Tue, 29 Mar 2011 21:06:14 +0000 (+0200) Subject: hlsdemux: check if the task's cond was signaled because it's the end of playlist X-Git-Tag: 1.19.3~507^2~16050^2~399 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=77c0971b62c7d691ab7c65583bfed2b8b457fc8e;p=platform%2Fupstream%2Fgstreamer.git hlsdemux: check if the task's cond was signaled because it's the end of playlist --- diff --git a/gst/hls/gsthlsdemux.c b/gst/hls/gsthlsdemux.c index 4513ef0b1e..745dfd1bc9 100644 --- a/gst/hls/gsthlsdemux.c +++ b/gst/hls/gsthlsdemux.c @@ -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)