[libdmapsharing] Check for LIBDMAPSHARING_ENABLE_LOCAL to facilitate one-host debugging Signed-off-by: W. Michael Pet



commit e37b7159b62bcc1ec7c728ad53400a37173eb909
Author: W. Michael Petullo <mike flyn org>
Date:   Fri Oct 1 13:26:42 2010 -0500

    Check for LIBDMAPSHARING_ENABLE_LOCAL to facilitate one-host debugging
    Signed-off-by: W. Michael Petullo <mike flyn org>

 libdmapsharing/dacp-share.c              |    2 +-
 libdmapsharing/dmap-mdns-browser-avahi.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libdmapsharing/dacp-share.c b/libdmapsharing/dacp-share.c
index 337a2ff..16579e9 100644
--- a/libdmapsharing/dacp-share.c
+++ b/libdmapsharing/dacp-share.c
@@ -384,7 +384,7 @@ mdns_remote_added (DMAPMdnsBrowser *browser,
                    DACPShare *share) 
 {
 	DACPRemoteInfo *remote_info;
-	
+       
 	remote_info = g_new (DACPRemoteInfo, 1);
 	remote_info->host = g_strdup (service->host);
 	remote_info->port = service->port;
diff --git a/libdmapsharing/dmap-mdns-browser-avahi.c b/libdmapsharing/dmap-mdns-browser-avahi.c
index 8b1098f..87c367a 100644
--- a/libdmapsharing/dmap-mdns-browser-avahi.c
+++ b/libdmapsharing/dmap-mdns-browser-avahi.c
@@ -506,7 +506,7 @@ browse_cb (AvahiServiceBrowser *service_browser,
 #ifdef HAVE_AVAHI_0_6
     local = ((flags & AVAHI_LOOKUP_RESULT_LOCAL) != 0);
 #endif
-    if (local) {
+    if (local && getenv ("LIBDMAPSHARING_ENABLE_LOCAL") == NULL) {
         g_debug ("Ignoring local service %s", name);
         return;
     }



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