mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
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:
parent
0d08f41c28
commit
56b03cb3a8
1 changed files with 2 additions and 1 deletions
|
|
@ -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 */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue