multiqueue: do not reduce single queue below current level
authorArnaud Vrac <avrac@freebox.fr>
Fri, 24 Jan 2014 18:19:08 +0000 (19:19 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 27 Jan 2014 18:57:35 +0000 (19:57 +0100)
commita93615aea1a85d5059de43614d5e6148f6ae4054
treee0dba54e98066f9cfe1a396cedc44da49b5e0286
parent78d13b6642968fc1d98f505a3e6d79e3777796da
multiqueue: do not reduce single queue below current level

When the single queue size was just bumped by 1 to allow more buffers to
be added, the buffers limit could be reduced to the current level when
setting the max-size-buffers property. This would result in a stall
since the queue would not grow anymore at this point.

Prevent this by not reducing a single queue size below the current
number of buffers + 1.

https://bugzilla.gnome.org/show_bug.cgi?id=712597
plugins/elements/gstmultiqueue.c