queue: Fix handling of min-threshold and serialized queries
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 9 Jul 2012 13:37:28 +0000 (15:37 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 9 Jul 2012 13:40:29 +0000 (15:40 +0200)
commitaf73f3fc02a6eb698da3933ea7bd607b2b157772
tree6781e3db67b802022f4778c836327d2651b9a214
parentf6e8786be88a3a18b5da2985170887ecedb2b634
queue: Fix handling of min-threshold and serialized queries

Only consider the queue empty if the minimum thresholds
are not reached and data is at the queue head. Otherwise
we would block forever on serialized queries.

This also makes sending of serialized events, like caps, happen
faster and potentially improves negotiation performance.

Fixes bug #679458.
plugins/elements/gstqueue.c