multiqueue: Wake up any waiting streams if the current one goes EOS

Otherwise we might have unlinked streams waiting.

https://bugzilla.gnome.org/show_bug.cgi?id=738198
This commit is contained in:
Andrei Sarakeev 2014-10-16 10:13:14 +04:00 committed by Sebastian Dröge
parent bca04b06aa
commit ee93c807e1

View file

@ -1541,6 +1541,14 @@ gst_multi_queue_loop (GstPad * pad)
GST_LOG_OBJECT (mq, "AFTER PUSHING sq->srcresult: %s",
gst_flow_get_name (sq->srcresult));
GST_MULTI_QUEUE_MUTEX_LOCK (mq);
if (mq->numwaiting > 0 && sq->srcresult == GST_FLOW_EOS) {
compute_high_time (mq);
compute_high_id (mq);
wake_up_next_non_linked (mq);
}
GST_MULTI_QUEUE_MUTEX_UNLOCK (mq);
return;
out_flushing: