minor fixes

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@329 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2005-01-06 01:07:43 +00:00
parent 8199925cec
commit fb11e45cfd
5 changed files with 33 additions and 23 deletions

View file

@ -263,6 +263,9 @@ struct pa_socket_client* pa_socket_client_new_string(struct pa_mainloop_api *m,
if (pa_parse_address(name, &a) < 0)
return NULL;
if (!a.port)
a.port = default_port;
switch (a.type) {
case PA_PARSED_ADDRESS_UNIX:
c = pa_socket_client_new_unix(m, a.path_or_host);