Diff between 82c37ba9d5fb114aa5d0bde1e5ab4421fbd616c7 and 0d375fd36b0f1bf577575f7a628d452e5c1b2634
Changed Files
| File | Additions | Deletions | Status |
| audio/manager.c | +5 | -2 | modified |
Full Patch
diff --git a/audio/manager.c b/audio/manager.c
index 9fc19cc..70be01b 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -668,9 +668,12 @@ static struct audio_device *get_audio_dev(struct btd_device *device)
static void audio_remove(struct btd_profile *p, struct btd_device *device)
{
struct audio_device *dev;
+ const char *path;
- dev = get_audio_dev(device);
- if (!dev)
+ path = device_get_path(device);
+
+ dev = manager_find_device(path, NULL, NULL, NULL, FALSE);
+ if (dev == NULL)
return;
devices = g_slist_remove(devices, dev);