mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +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
|
@ -1936,10 +1936,10 @@ single_queue_overrun_cb (GstDataQueue * dq, GstSingleQueue * sq)
|
||||||
|
|
||||||
all_not_linked = FALSE;
|
all_not_linked = FALSE;
|
||||||
GST_LOG_OBJECT (mq, "Checking Queue %d", oq->id);
|
GST_LOG_OBJECT (mq, "Checking Queue %d", oq->id);
|
||||||
|
|
||||||
if (gst_data_queue_is_empty (oq->queue)) {
|
if (gst_data_queue_is_empty (oq->queue)) {
|
||||||
GST_LOG_OBJECT (mq, "Queue %d is empty", oq->id);
|
GST_LOG_OBJECT (mq, "Queue %d is empty", oq->id);
|
||||||
empty_found = TRUE;
|
empty_found = TRUE;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue