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,15 +831,11 @@ static DBusHandlerResult filter_cb(DBusConnection *bus, DBusMessage *msg, void *
|
|||
} else if (dbus_message_is_signal(msg, "org.bluez.Headset", "Connected") ||
|
||||
dbus_message_is_signal(msg, "org.bluez.AudioSink", "Connected")) {
|
||||
|
||||
if (!dbus_message_iter_init(msg, &arg_i))
|
||||
pa_log("dbus: message has no parameters");
|
||||
else {
|
||||
struct device *d;
|
||||
|
||||
if ((d = device_find(u, dbus_message_get_path(msg))))
|
||||
load_module_for_device(u, d);
|
||||
}
|
||||
}
|
||||
|
||||
dbus_error_free(&err);
|
||||
return DBUS_HANDLER_RESULT_HANDLED;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue