[nautilus-sendto] No need to look for all resources anymore



commit 99519ed25a8f00ad17dcbf5287edc27a415f91d5
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sat Aug 22 16:53:39 2009 +0300

    No need to look for all resources anymore
    
    No need to look for all UPnP resources and filtering out the MediaServer
    devices, anymore.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=592799

 src/plugins/upnp/upnp.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/src/plugins/upnp/upnp.c b/src/plugins/upnp/upnp.c
index 0554cd4..eb24ed7 100644
--- a/src/plugins/upnp/upnp.c
+++ b/src/plugins/upnp/upnp.c
@@ -31,7 +31,7 @@
 #include <libgupnp-av/gupnp-av.h>
 #include "nautilus-sendto-plugin.h"
 
-#define MEDIA_SERVER "urn:schemas-upnp-org:device:MediaServer:*"
+#define MEDIA_SERVER "urn:schemas-upnp-org:device:MediaServer:1"
 #define CDS "urn:schemas-upnp-org:service:ContentDirectory"
 
 enum {
@@ -141,12 +141,6 @@ device_proxy_available_cb (GUPnPControlPoint *cp,
 	GUPnPServiceInfo *info;
 	const gchar *type;
 
-	type = gupnp_device_info_get_device_type (GUPNP_DEVICE_INFO (proxy));
-	if (!g_pattern_match_simple (MEDIA_SERVER, type)) {
-		/* We are only interested in MediaServer */
-		return;
-	}
-
 	info = gupnp_device_info_get_service (GUPNP_DEVICE_INFO (proxy), CDS);
 	if (G_UNLIKELY (info == NULL)) {
 		/* No ContentDirectory implemented? Not interesting. */
@@ -199,7 +193,7 @@ init (NstPlugin *plugin)
 		return FALSE;
 	}
 
-	cp = gupnp_control_point_new (context, "ssdp:all");
+	cp = gupnp_control_point_new (context, MEDIA_SERVER);
 
 	g_signal_connect (cp,
 			  "device-proxy-available",



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