- option to use default fragment size on alsa drivers
- lazy sample cache
- per-channel volume
-- fix or work around libtool bug
- merge pa_context_connect_*
- input latency
-- fix public=
-- fix POLYP_SERVER=foo:4711
- fix tcp/native
- suid
sample.h \
glib-mainloop.h
+### Warning! Due to an obscure bug in libtool/automake it is required
+### that the libraries in modlib_LTLIBRARIES are specified in-order,
+### i.e. libraries near the end of the list depend on libraries near
+### the head, and not the other way!
+
modlib_LTLIBRARIES= \
libsocket-util.la \
libiochannel.la \
static struct sockaddr *resolve_server(const char *server, size_t *len) {
struct sockaddr *sa;
struct addrinfo hints, *result = NULL;
- char *port;
+ char *port, host[256];
assert(server && len);
+ snprintf(host, sizeof(host), "%s", server);
+ host[strcspn(host, ":")] = 0;
+
if ((port = strrchr(server, ':')))
port++;
+
if (!port)
port = DEFAULT_PORT;
hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = 0;
- if (getaddrinfo(server, port, &hints, &result) != 0)
+ if (getaddrinfo(host, port, &hints, &result) != 0)
return NULL;
assert(result);