mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
media-sink: Set up ASHA source after setting transport state
We need to make sure the state is available when the source starts, so that it does not assert in flush_data()
This commit is contained in:
parent
e5afc939e8
commit
9ff1c93ab1
1 changed files with 8 additions and 8 deletions
|
|
@ -1541,6 +1541,14 @@ static int transport_start(struct impl *this)
|
|||
spa_loop_add_source(this->data_loop, &this->flush_source);
|
||||
}
|
||||
|
||||
this->resync = RESYNC_CYCLES;
|
||||
this->flush_pending = false;
|
||||
this->iso_pending = false;
|
||||
|
||||
this->transport_started = true;
|
||||
|
||||
if (this->transport->iso_io)
|
||||
spa_loop_invoke(this->data_loop, do_start_iso_io, 0, NULL, 0, true, this);
|
||||
if (is_asha) {
|
||||
struct spa_bt_asha *asha = this->asha;
|
||||
|
||||
|
|
@ -1564,14 +1572,6 @@ static int transport_start(struct impl *this)
|
|||
spa_list_append(&asha_sinks, &this->asha_link);
|
||||
}
|
||||
|
||||
this->resync = RESYNC_CYCLES;
|
||||
this->flush_pending = false;
|
||||
this->iso_pending = false;
|
||||
|
||||
this->transport_started = true;
|
||||
|
||||
if (this->transport->iso_io)
|
||||
spa_loop_invoke(this->data_loop, do_start_iso_io, 0, NULL, 0, true, this);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue