[gnome-bluetooth] Don't add the Audio service, when there's no headset or sink



commit 22491f408588ca6ebc0db40e58d68965208dca3f
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jun 5 16:39:44 2009 +0100

    Don't add the Audio service, when there's no headset or sink
    
    Otherwise devices with AVCRP will get tagged, and we'll look
    silly.
---
 common/bluetooth-client.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/common/bluetooth-client.c b/common/bluetooth-client.c
index a104475..11c8300 100644
--- a/common/bluetooth-client.c
+++ b/common/bluetooth-client.c
@@ -379,7 +379,7 @@ device_list_nodes (DBusGProxy *device, BluetoothClient *client, gboolean connect
 		if (g_hash_table_lookup (table, iface_name) != NULL)
 			continue;
 
-		iface = dbus_g_proxy_new_from_proxy (device, iface_name, NULL);
+		iface = dbus_g_proxy_new_from_proxy (device, detectable_interfaces[i], NULL);
 		if (dbus_g_proxy_call (iface, "GetProperties", NULL,
 				       G_TYPE_INVALID, dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE), &props,
 				       G_TYPE_INVALID) != FALSE) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]