]> code.delx.au - pulseaudio/commit
native: rework handling of seeks that depend on variables the client does not know...
authorLennart Poettering <lennart@poettering.net>
Mon, 18 Jan 2010 00:33:04 +0000 (01:33 +0100)
committerColin Guthrie <cguthrie@mandriva.org>
Tue, 9 Feb 2010 22:45:59 +0000 (22:45 +0000)
commit66cfa72eb4fd4669dfd7e465c07c41bb7e6d3d85
treeac2d6575205b0e364cf869d991e3894bcc4844c0
parentd09099526220fb87ac8c4f6bae298b23744d0dae
native: rework handling of seeks that depend on variables the client does not know anything about

All seeks/flushes that depend on the playback buffer read pointer cannot
be accounted for properly in the client since it does not know the
actual read pointer. Due to that the clients do not account for it at
all. We need do the same on the server side. And we did, but a little
bit too extreme. While we properly have not applied the changes to the
"request" counter we still do have to apply it to the "missing" counter.
This patch fixes that.
src/modules/module-combine.c
src/modules/module-loopback.c
src/pulse/stream.c
src/pulsecore/memblockq.c
src/pulsecore/memblockq.h
src/pulsecore/protocol-native.c
src/pulsecore/sink-input.c