]> code.delx.au - pulseaudio/commit
native: fix request counter miscalculations
authorLennart Poettering <lennart@poettering.net>
Fri, 8 Jan 2010 19:07:34 +0000 (20:07 +0100)
committerColin Guthrie <cguthrie@mandriva.org>
Tue, 9 Feb 2010 22:29:20 +0000 (22:29 +0000)
commit699233fb47d133f6ea1e36e8354a386c23608d5a
treed749a60c0d19764672dc71a302088622c3b09e4d
parent66dbca1e06af0607a2d0fc6b8d14ef1ebb034f0a
native: fix request counter miscalculations

Do not subtract bytes the client sends us beyond what we requested from
our missing bytes counter.

This was mostly a thinko that caused servers asking for too little data
when the client initially sent more data than requested, because that
data sent too much was accounted for twice.

This commit fixes this miscalculation.

http://bugzilla.redhat.com/show_bug.cgi?id=534130
src/pulse/stream.c
src/pulsecore/memblockq.c
src/pulsecore/protocol-native.c