mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
Fix Connected signal handler.
This commit is contained in:
parent
04677cb925
commit
20f68bcc46
1 changed files with 2 additions and 6 deletions
|
|
@ -831,14 +831,10 @@ static DBusHandlerResult filter_cb(DBusConnection *bus, DBusMessage *msg, void *
|
||||||
} else if (dbus_message_is_signal(msg, "org.bluez.Headset", "Connected") ||
|
} else if (dbus_message_is_signal(msg, "org.bluez.Headset", "Connected") ||
|
||||||
dbus_message_is_signal(msg, "org.bluez.AudioSink", "Connected")) {
|
dbus_message_is_signal(msg, "org.bluez.AudioSink", "Connected")) {
|
||||||
|
|
||||||
if (!dbus_message_iter_init(msg, &arg_i))
|
struct device *d;
|
||||||
pa_log("dbus: message has no parameters");
|
|
||||||
else {
|
|
||||||
struct device *d;
|
|
||||||
|
|
||||||
if ((d = device_find(u, dbus_message_get_path(msg))))
|
if ((d = device_find(u, dbus_message_get_path(msg))))
|
||||||
load_module_for_device(u, d);
|
load_module_for_device(u, d);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dbus_error_free(&err);
|
dbus_error_free(&err);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue