mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
multiqueue: Break the loop immediately if we found an empty queue
No need to continue looking at all the others
This commit is contained in:
parent
4f928547a8
commit
454ee04a22
1 changed files with 2 additions and 2 deletions
|
@ -1931,15 +1931,15 @@ single_queue_overrun_cb (GstDataQueue * dq, GstSingleQueue * sq)
|
|||
|
||||
if (oq->srcresult == GST_FLOW_NOT_LINKED) {
|
||||
GST_LOG_OBJECT (mq, "Queue %d is not-linked", oq->id);
|
||||
continue;
|
||||
continue;
|
||||
}
|
||||
|
||||
all_not_linked = FALSE;
|
||||
GST_LOG_OBJECT (mq, "Checking Queue %d", oq->id);
|
||||
|
||||
if (gst_data_queue_is_empty (oq->queue)) {
|
||||
GST_LOG_OBJECT (mq, "Queue %d is empty", oq->id);
|
||||
empty_found = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue