From 004b38f0f812b7f92d21267deb6d5990eac982ad Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 2 Feb 2009 18:18:34 -0300 Subject: Prevent changing volume on wrong device. --- src/modules/bluetooth/module-bluetooth-device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index de6bded2..d909d70d 100644 --- a/src/modules/bluetooth/module-bluetooth-device.c +++ b/src/modules/bluetooth/module-bluetooth-device.c @@ -1068,6 +1068,9 @@ finish: /* dbus_error_init(&err); */ +/* if (!dbus_message_has_path(msg, u->path)) */ +/* goto done; */ + /* if (dbus_message_is_signal(msg, "org.bluez.Headset", "PropertyChanged") || */ /* dbus_message_is_signal(msg, "org.bluez.AudioSink", "PropertyChanged")) { */ -- cgit v1.2.3