mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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:
parent
bca04b06aa
commit
ee93c807e1
1 changed files with 8 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue