mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa-pcm: limit the target to the buffer size
Don't try to wait for more samples than can fit in the ringbuffer. See #2603
This commit is contained in:
parent
a23d154952
commit
e22e522ab8
1 changed files with 1 additions and 0 deletions
|
|
@ -1778,6 +1778,7 @@ static int get_status(struct state *state, uint64_t current_time,
|
|||
*delay = avail;
|
||||
*target = SPA_MAX(*target, state->read_size);
|
||||
}
|
||||
*target = SPA_MIN(*target, state->buffer_frames);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue