mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
pulse-server: tweak maxlength some more
Make the buffer size at least 4 times as large as the fragment size to avoid xruns.
This commit is contained in:
parent
12bee0edf8
commit
6188e4d074
1 changed files with 2 additions and 2 deletions
|
|
@ -678,8 +678,8 @@ static uint32_t fix_record_buffer_attr(struct stream *s, struct buffer_attr *att
|
|||
latency = attr->fragsize;
|
||||
}
|
||||
/* make sure can queue at least to fragsize without overruns */
|
||||
if (attr->maxlength < attr->fragsize * 2)
|
||||
attr->maxlength = attr->fragsize * 2;
|
||||
if (attr->maxlength < attr->fragsize * 4)
|
||||
attr->maxlength = attr->fragsize * 4;
|
||||
|
||||
pw_log_info("[%s] maxlength:%u fragsize:%u minfrag:%u latency:%u",
|
||||
s->client->name, attr->maxlength, attr->fragsize, minfrag,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue