mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
a2dp-sink: fix infinite loop when buffer could not be encoded
This commit is contained in:
parent
4f31ca5383
commit
4b202b9656
1 changed files with 4 additions and 0 deletions
|
|
@ -559,6 +559,10 @@ static int flush_data(struct impl *this, uint64_t now_time)
|
|||
n_bytes += add_data(this, src, l1);
|
||||
if (n_bytes <= 0) {
|
||||
port->need_data = true;
|
||||
spa_list_remove(&b->link);
|
||||
b->outstanding = true;
|
||||
spa_node_call_reuse_buffer(&this->callbacks, 0, b->id);
|
||||
port->ready_offset = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue