multiqueue: never consider a queue that is not waiting
authorMathieu Duponchelle <mathieu@centricular.com>
Thu, 9 Sep 2021 18:25:25 +0000 (20:25 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 13 Sep 2021 14:16:06 +0000 (14:16 +0000)
commit67eb70bb9ca4abcccad31c41d49ff27c9492e2dc
treea1d38cd6f16607a7ac1df4d7e66ec339328331a0
parentb6147e6037202503c133eb1fad1d936bd9269cef
multiqueue: never consider a queue that is not waiting

.. when computing the high id.

After a flush for instance, sq->srcresult is reset to OK,
yet it doesn't make sense to pick a non-existing position
id as the high id when a queue doesn't contain any items
in that situation either.

It is in any case completely OK to let the not-linked stream
get consumed without throttling at this stage, as any
first packet arriving on other single queues will get assigned
a higher position id.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/885>
plugins/elements/gstmultiqueue.c