mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
stream: maxlength / size is the number of buffers we want
tlength is what the server buffers and is of no importance for deciding the number of buffers.
This commit is contained in:
parent
9d2cf17516
commit
a00c00baed
1 changed files with 1 additions and 1 deletions
|
|
@ -283,7 +283,7 @@ static const struct spa_pod *get_buffers_param(pa_stream *s, pa_buffer_attr *att
|
|||
if (attr->maxlength == -1)
|
||||
buffers = 3;
|
||||
else
|
||||
buffers = SPA_CLAMP(attr->maxlength / (maxsize * stride), 3, MAX_BUFFERS);
|
||||
buffers = SPA_CLAMP(attr->maxlength / (size * stride), 3, MAX_BUFFERS);
|
||||
|
||||
pw_log_info("stream %p: stride %d maxsize %d size %u buffers %d", s, stride, maxsize,
|
||||
size, buffers);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue