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:
Wim Taymans 2023-11-10 16:12:15 +01:00
parent e2598b3242
commit 3baead9b0b

View file

@ -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];