pulse-server: update requested for relative seek only

PulseAudio only updates the requested amount of bytes for relative
seeks, do the same.

See #2680
This commit is contained in:
Wim Taymans 2022-09-10 16:06:45 +02:00
parent 0d08f41c28
commit 56b03cb3a8

View file

@ -166,7 +166,8 @@ static int handle_memblock(struct client *client, struct message *msg)
index += diff; index += diff;
filled += diff; filled += diff;
stream->write_index += diff; stream->write_index += diff;
stream->requested -= diff; if ((flags & FLAG_SEEKMASK) == SEEK_RELATIVE)
stream->requested -= diff;
if (filled < 0) { if (filled < 0) {
/* underrun, reported on reader side */ /* underrun, reported on reader side */