summaryrefslogtreecommitdiffstats
path: root/polyp/polyplib-browser.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-01-11 20:47:10 +0000
committerLennart Poettering <lennart@poettering.net>2005-01-11 20:47:10 +0000
commit32bf3a106a946303f2175f01f3124354edd95a3e (patch)
tree5e5bab6284bc2603d2acf7126eab5307d013e3fe /polyp/polyplib-browser.c
parent5ab306402d9efcceb3cc7b1097602c45365f12bd (diff)
* new environment variable $POLYP_LOG
* fix connection establishing algorithm * add timeout for establishing connections * add fqdn to the server directive to connect to in browse API * quieten ESOUND protocol git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@338 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/polyplib-browser.c')
-rw-r--r--polyp/polyplib-browser.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/polyp/polyplib-browser.c b/polyp/polyplib-browser.c
index 7e56e2ce..2e75a42d 100644
--- a/polyp/polyplib-browser.c
+++ b/polyp/polyplib-browser.c
@@ -55,7 +55,6 @@ static void io_callback(struct pa_mainloop_api*a, struct pa_io_event*e, int fd,
}
}
-
static sw_result resolve_reply(
sw_discovery discovery,
sw_discovery_oid oid,
@@ -134,9 +133,16 @@ static sw_result resolve_reply(
i.user_name = c;
c = NULL;
} else if (!strcmp(key, "fqdn")) {
+ size_t l;
+
pa_xfree((char*) i.fqdn);
i.fqdn = c;
c = NULL;
+
+ l = strlen(a);
+ assert(l+1 <= sizeof(a));
+ strncat(a, " ", sizeof(a)-l-1);
+ strncat(a, i.fqdn, sizeof(a)-l-2);
} else if (!strcmp(key, "cookie")) {
if (pa_atou(c, &cookie) < 0)