diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-09-08 18:50:16 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-09-08 18:50:16 +0200 |
commit | a83ccff765033e99113ac29d3b0b7f7e0064fb28 (patch) | |
tree | 085e8fcf478c8e7edae2f5e6375f8f43e0ffabfe /audio | |
parent | 8a74ae3846bc1fb887c80a355265e701f1546df6 (diff) | |
parent | 19ce4933f3dadf3b04a2a9bd84d66d750cc010c3 (diff) |
Merge branch 'for-upstream' of git://gitorious.org/bluez/aloks-clone
Diffstat (limited to 'audio')
-rw-r--r-- | audio/manager.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/audio/manager.c b/audio/manager.c index a53d2d19..8ad5dd37 100644 --- a/audio/manager.c +++ b/audio/manager.c @@ -673,14 +673,11 @@ static int audio_probe(struct btd_device *device, GSList *records) { struct btd_adapter *adapter = device_get_adapter(device); const gchar *path = device_get_path(device); - const char *destination; bdaddr_t src, dst; struct audio_device *dev; adapter_get_address(adapter, &src); - destination = device_get_address(device); - - str2ba(destination, &dst); + device_get_address(device, &dst); dev = manager_find_device(&dst, NULL, FALSE); if (!dev) { @@ -698,12 +695,11 @@ static int audio_probe(struct btd_device *device, GSList *records) static void audio_remove(struct btd_device *device) { struct audio_device *dev; - const char *destination = device_get_address(device); - bdaddr_t dst; + bdaddr_t bdaddr; - str2ba(destination, &dst); + device_get_address(device, &bdaddr); - dev = manager_find_device(&dst, NULL, FALSE); + dev = manager_find_device(&bdaddr, NULL, FALSE); if (!dev) return; |