bluez5: drop old SCO fragment data when sink starts

Any pending SCO fragment data should be cleared when sink starts, so
that we don't send out any old data.
This commit is contained in:
Pauli Virtanen 2025-06-21 16:13:57 +03:00
parent 665a27f281
commit 7fd05e7eaa
3 changed files with 7 additions and 0 deletions

View file

@ -207,6 +207,11 @@ fail:
return res;
}
void spa_bt_sco_io_write_start(struct spa_bt_sco_io *io)
{
/* drop fragment */
io->write_size = 0;
}
struct spa_bt_sco_io *spa_bt_sco_io_create(struct spa_bt_transport *transport, struct spa_loop *data_loop,
struct spa_system *data_system, struct spa_log *log)