bluez5: drop queued data on node stop

Clear queued buffers when stopping consuming, to ensure that all buffers
are usable when we start again.

Do for A2DP as we already do for SCO.
This commit is contained in:
Pauli Virtanen 2023-12-04 20:40:22 +02:00
parent 81aaf0e204
commit a9ff282501
2 changed files with 4 additions and 1 deletions

View file

@ -1333,6 +1333,9 @@ static int do_remove_transport_source(struct spa_loop *loop,
if (this->transport->iso_io)
spa_bt_iso_io_set_cb(this->transport->iso_io, NULL, NULL);
/* Drop queued data */
drop_frames(this, UINT32_MAX);
return 0;
}