[libdmapsharing] Fill in backlog's DMAPMdnsBrowserService fields earlier for clarity Signed-off-by: W. Michael Petull
- From: W. Michael Petullo <wmpetullo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdmapsharing] Fill in backlog's DMAPMdnsBrowserService fields earlier for clarity Signed-off-by: W. Michael Petull
- Date: Fri, 8 Jul 2011 15:48:48 +0000 (UTC)
commit ad1e386aff2af3a01a00d1fa110aa00e6b8ac4ad
Author: W. Michael Petullo <mike flyn org>
Date: Fri Jul 8 09:49:54 2011 -0500
Fill in backlog's DMAPMdnsBrowserService fields earlier for clarity
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 7272746..839e646 100644
--- a/libdmapsharing/dmap-mdns-browser-dnssd.c
+++ b/libdmapsharing/dmap-mdns-browser-dnssd.c
@@ -124,8 +124,8 @@ dmap_mdns_browser_resolve (ServiceContext *context)
service->name = g_strdup (context->service.name);
service->host = g_strdup (context->service.host);
service->port = context->service.port;
- service->pair = NULL;
- service->password_protected = FALSE;
+ service->pair = g_strdup (context->service.pair);
+ service->password_protected = context->service.password_protected;
// add to the services list
context->browser->priv->services =
@@ -191,6 +191,8 @@ dns_service_resolve_reply (DNSServiceRef sd_ref,
ctx->service.port = htons (port);
ctx->service.name = g_strdup (name);
ctx->service.host = g_strdup (host);
+ ctx->service.pair = NULL;
+ ctx->service.password_protected = FALSE;
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]