mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
jack: use empty area when get_buffer frames is 0
Client that call port_get_buffer with 0 frames get the empty scratch buffer because we can't know the final output size.
This commit is contained in:
parent
753af7c7b3
commit
f73a0c97e3
1 changed files with 3 additions and 0 deletions
|
|
@ -806,6 +806,9 @@ static void *get_buffer_output(struct client *c, struct port *p, uint32_t frames
|
|||
p->io.status = -EPIPE;
|
||||
p->io.buffer_id = SPA_ID_INVALID;
|
||||
|
||||
if (frames == 0)
|
||||
return NULL;
|
||||
|
||||
if (SPA_LIKELY((mix = find_mix(c, p, -1)) != NULL)) {
|
||||
struct buffer *b;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue