mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: reset ready_offset when we clear the queue
So that we start from the first sample of a new ready buffer.
This commit is contained in:
parent
e2598b3242
commit
3baead9b0b
1 changed files with 1 additions and 0 deletions
|
|
@ -2268,6 +2268,7 @@ static void reset_buffers(struct state *this)
|
|||
|
||||
spa_list_init(&this->free);
|
||||
spa_list_init(&this->ready);
|
||||
this->ready_offset = 0;
|
||||
|
||||
for (i = 0; i < this->n_buffers; i++) {
|
||||
struct buffer *b = &this->buffers[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue