mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
spa: bluez: dbus: emit added devices when adding new listener
Previously, when a new listener was registered, it was not made aware of the already added devices.
This commit is contained in:
parent
52af41850d
commit
61453b91bd
1 changed files with 6 additions and 0 deletions
|
|
@ -4592,6 +4592,12 @@ impl_device_add_listener(void *object, struct spa_hook *listener,
|
|||
add_filters(this);
|
||||
get_managed_objects(this);
|
||||
|
||||
struct spa_bt_device *device;
|
||||
spa_list_for_each(device, &this->device_list, link) {
|
||||
if (device->added)
|
||||
emit_device_info(this, device, this->connection_info_supported);
|
||||
}
|
||||
|
||||
spa_hook_list_join(&this->hooks, &save);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue