mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
pulse-server: only try to increase the tlength
PulseAudio only tries to increase tlength, never decrease so let's do the same.
This commit is contained in:
parent
68cd9ac738
commit
7f0255f4ce
1 changed files with 2 additions and 5 deletions
|
|
@ -265,12 +265,9 @@ int stream_update_minreq(struct stream *stream, uint32_t minreq)
|
||||||
uint32_t new_tlength = minreq + 2 * stream->attr.minreq;
|
uint32_t new_tlength = minreq + 2 * stream->attr.minreq;
|
||||||
uint64_t lat_usec;
|
uint64_t lat_usec;
|
||||||
|
|
||||||
if (new_tlength == old_tlength)
|
if (old_tlength >= new_tlength)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (old_tlength > new_tlength)
|
|
||||||
stream->missing -= old_tlength - new_tlength;
|
|
||||||
else
|
|
||||||
stream->missing += new_tlength - old_tlength;
|
stream->missing += new_tlength - old_tlength;
|
||||||
|
|
||||||
stream->attr.tlength = new_tlength;
|
stream->attr.tlength = new_tlength;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue