bluez5: iso-io: initialize stream->size, now when setting cb

Ensure size and now have valid values after exiting
spa_bt_iso_io_set_cb(), so data may be provided already on first cycle.
This commit is contained in:
Pauli Virtanen 2025-10-11 19:20:07 +03:00 committed by Wim Taymans
parent 4ca1d70979
commit 4e3a5d9e6f

View file

@ -613,12 +613,10 @@ void spa_bt_iso_io_set_cb(struct spa_bt_iso_io *this, spa_bt_iso_io_pull_t pull,
}
stream->idle = true;
stream->this.resync = true;
if (pull == NULL) {
stream->this.size = 0;
return;
}
stream->this.resync = true;
stream->this.size = 0;
stream->this.now = stream->group->next;
}
/** Must be called from data thread */