bluez5: media-sink: set initial latency after getting transport

The call to set_latency doesn't do anything, before transport has been
set.
This commit is contained in:
Pauli Virtanen 2022-12-21 16:40:28 +02:00
parent c7b3ef0d9f
commit b0853ad34a

View file

@ -1754,7 +1754,6 @@ impl_init(const struct spa_handle_factory *factory,
port->latency = SPA_LATENCY_INFO(SPA_DIRECTION_INPUT);
port->latency.min_quantum = 1.0f;
port->latency.max_quantum = 1.0f;
set_latency(this, false);
spa_list_init(&port->ready);
@ -1800,6 +1799,8 @@ impl_init(const struct spa_handle_factory *factory,
reset_props(this, &this->props);
set_latency(this, false);
spa_bt_transport_add_listener(this->transport,
&this->transport_listener, &transport_events, this);