Fighting rewinds: Reduce calls to handle_seek
authorDavid Henningsson <david.henningsson@canonical.com>
Thu, 9 Dec 2010 10:08:37 +0000 (11:08 +0100)
committerColin Guthrie <cguthrie@mandriva.org>
Mon, 31 Jan 2011 11:38:26 +0000 (11:38 +0000)
commit74eb4d892137f6ba4d87b011e46118668187307b
tree445600996ad5ef9627ee17c636ba3685f5af6d27
parentfe7b972487bfc85940d2d427096fd9189af3bd7a
Fighting rewinds: Reduce calls to handle_seek

If many small blocks are in queue, handle_seek is being called
for every one of them, sometimes causing a rewind. Delay the
call until all blocks are handled, then call handle_seek only
once.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/pulsecore/protocol-native.c