[libdmapsharing] Fix service_name/name in dmap_mdns_browser_resolve() Signed-off-by: W. Michael Petullo <mike flyn or



commit 8ac98cf07d6ec29a23acb2d89e3167b15b5644da
Author: W. Michael Petullo <mike flyn org>
Date:   Sun May 1 01:32:35 2011 -0500

    Fix service_name/name in dmap_mdns_browser_resolve()
    Signed-off-by: W. Michael Petullo <mike flyn org>

 libdmapsharing/dmap-mdns-browser-dnssd.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libdmapsharing/dmap-mdns-browser-dnssd.c b/libdmapsharing/dmap-mdns-browser-dnssd.c
index 0f29fbb..935052a 100644
--- a/libdmapsharing/dmap-mdns-browser-dnssd.c
+++ b/libdmapsharing/dmap-mdns-browser-dnssd.c
@@ -360,8 +360,10 @@ dmap_mdns_browser_resolve (DMAPMdnsBrowser * browser,
 
 	service = g_new (DMAPMdnsBrowserService, 1);
 
-	service->service_name = 
-		g_strdup (service_type_name[browser->priv->service_type]);
+	// FIXME: The name and service_name variables need to be renamed.
+	// Wait until working on DACP because I think this is when
+	// they are different. See Avahi code.
+	service->service_name = name;
 	service->name = name;
 	service->host = g_strdup (browser->priv->host_target);
 	service->port = browser->priv->port;



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