queue: Ignore thresholds if a query is queued
authorOlivier Crête <olivier.crete@collabora.com>
Thu, 1 Mar 2018 21:19:09 +0000 (16:19 -0500)
committerOlivier Crête <olivier.crete@collabora.com>
Thu, 1 Mar 2018 21:31:57 +0000 (16:31 -0500)
commit23b32d56008d364257d1d186da52650cb4475aa4
tree41c63599cfb27ff7f04650e0870aedcc9335eca4
parent9e44738ae7f06e182e2e393b1ad8da319b28447c
queue: Ignore thresholds if a query is queued

The queue gets filled by the tail, so a query will always be the tail
object, not the head object. Also add a _peek_tail_struct() method to the
GstQueueArray to enable looking at the tail.

With unit test to prevent future regression.

https://bugzilla.gnome.org/show_bug.cgi?id=762875
libs/gst/base/gstqueuearray.c
libs/gst/base/gstqueuearray.h
plugins/elements/gstqueue.c
tests/check/elements/queue.c