mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
audioadapter: alloc at least 2 buffers when async
When the follower is async, alloc at least 2 buffers.
This commit is contained in:
parent
8e95f1a575
commit
9163c419df
1 changed files with 3 additions and 0 deletions
|
|
@ -432,6 +432,9 @@ static int negotiate_buffers(struct impl *this)
|
|||
SPA_PARAM_BUFFERS_align, SPA_POD_OPT_Int(&align))) < 0)
|
||||
return res;
|
||||
|
||||
if (this->async)
|
||||
buffers = SPA_MAX(2u, buffers);
|
||||
|
||||
spa_log_debug(this->log, "%p: buffers:%d, blocks:%d, size:%d, stride:%d align:%d %d:%d",
|
||||
this, buffers, blocks, size, stride, align, follower_alloc, conv_alloc);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue