From 32bf3a106a946303f2175f01f3124354edd95a3e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 11 Jan 2005 20:47:10 +0000 Subject: * 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 --- polyp/polyplib-browser.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'polyp/polyplib-browser.c') 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) -- cgit