mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
minor fixes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@329 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
8199925cec
commit
fb11e45cfd
5 changed files with 33 additions and 23 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue