memblockq: remove internal "missing" state variable
authorPierre Ossman <ossman@cendio.se>
Thu, 19 May 2016 13:54:08 +0000 (15:54 +0200)
committerArun Raghavan <arun@arunraghavan.net>
Fri, 22 Jul 2016 11:00:25 +0000 (16:30 +0530)
commit74251f07864c63439ea847d7287024ac54578d64
tree1a81bad6f0fcc063e1bd4ba5913fd8b7f2c199e8
parenta7231692e907ca5d4c7c30beb8629b5c49e95c09
memblockq: remove internal "missing" state variable

It was a very confusing state variable that required a lot of
fiddling. It was also redundant in that it can be computed from
the other variables, removing any risk of it getting out of sync.
In the same spirit, make sure "requested" also always contains a
sane value, even though it may not be used by every caller.
src/pulsecore/memblockq.c