mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-20 05:33:55 -04:00
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:
parent
4ca1d70979
commit
4e3a5d9e6f
1 changed files with 3 additions and 5 deletions
|
|
@ -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->idle = true;
|
||||||
stream->this.resync = true;
|
|
||||||
|
|
||||||
if (pull == NULL) {
|
stream->this.resync = true;
|
||||||
stream->this.size = 0;
|
stream->this.size = 0;
|
||||||
return;
|
stream->this.now = stream->group->next;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Must be called from data thread */
|
/** Must be called from data thread */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue