multiqueue: refactor buffering code
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 22 Oct 2009 20:38:12 +0000 (16:38 -0400)
committerWim Taymans <wim@metal.(none)>
Tue, 27 Oct 2009 13:40:15 +0000 (14:40 +0100)
commit30fc865162cb7f633e4f993b3e34045d4c33678b
tree674fd2398e7fa60c618428b6707d99112c18f691
parent99dd9830a9602826823eeaca000fac2e7df6dfd3
multiqueue: refactor buffering code

Move the buffering update code to a separate function so that we can call it
when the buffering state changes due to EOS.
Avoid dividing by 0.
plugins/elements/gstmultiqueue.c