summaryrefslogtreecommitdiffstats
path: root/audio/manager.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-10-09 13:31:57 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-10-09 13:31:57 +0000
commitaf44f3cafbe4a2a2f2c4bb5879d803f766cf775a (patch)
tree305615a154490bd3175c6fe093a69bff46159ac8 /audio/manager.c
parent0d1a32ac9d3fcdcbcd4ea20b76a1818db819fea7 (diff)
Fix device removal when it is not the current adapter.
Diffstat (limited to 'audio/manager.c')
-rw-r--r--audio/manager.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/manager.c b/audio/manager.c
index e1fb81ce..f5a67cac 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -1024,6 +1024,7 @@ static DBusSignalVTable manager_signals[] = {
static void parse_stored_devices(char *key, char *value, void *data)
{
+ bdaddr_t *src = data;
struct device *device;
bdaddr_t dst;
@@ -1042,6 +1043,9 @@ static void parse_stored_devices(char *key, char *value, void *data)
if (!device)
return;
+ /* Change storage to source adapter */
+ bacpy(&device->store, src);
+
if (strstr(value, "headset"))
device->headset = headset_init(device, NULL, 0);
if (strstr(value, "sink"))