mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
parent
529f4d318f
commit
68677774fc
2 changed files with 17 additions and 17 deletions
|
|
@ -757,6 +757,7 @@ static int device_connected_old(struct spa_bt_monitor *monitor, struct spa_bt_de
|
|||
info.props = &SPA_DICT_INIT(items, n_items);
|
||||
spa_device_emit_object_info(&monitor->hooks, device->id, &info);
|
||||
} else {
|
||||
device->added = false;
|
||||
battery_remove(device);
|
||||
spa_bt_device_release_transports(device);
|
||||
spa_device_emit_object_info(&monitor->hooks, device->id, NULL);
|
||||
|
|
@ -833,10 +834,6 @@ static int device_connected(struct spa_bt_monitor *monitor, struct spa_bt_device
|
|||
info.props = &SPA_DICT_INIT(items, n_items);
|
||||
spa_device_emit_object_info(&monitor->hooks, device->id, &info);
|
||||
|
||||
if(!init && !device->connected) {
|
||||
spa_device_emit_object_info(&monitor->hooks, device->id, NULL);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue