Copied from https://gitlab.freedesktop.org//gstreamer/gst-plugins-good/-/merge_requests/807
Instead of leaving them queued indefinitely, or until we're timing out and it's the only buffer queued.
Copied from https://gitlab.freedesktop.org//gstreamer/gst-plugins-good/-/merge_requests/807
Instead of leaving them queued indefinitely, or until we're timing out and it's the only buffer queued.