mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
minor compile work
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@33 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
3b50a7c129
commit
b9e0fa84f3
2 changed files with 4 additions and 1 deletions
|
|
@ -15,6 +15,7 @@
|
|||
#define DEFAULT_MAX_LENGTH 20480
|
||||
#define DEFAULT_PREBUF 4096
|
||||
#define DEFAULT_TIMEOUT 5
|
||||
#define DEFAULT_SERVER "/tmp/foo"
|
||||
|
||||
struct pa_context {
|
||||
char *name;
|
||||
|
|
@ -212,7 +213,7 @@ int pa_context_connect(struct pa_context *c, const char *server, void (*complete
|
|||
assert(c && c->state == CONTEXT_UNCONNECTED);
|
||||
|
||||
assert(!c->client);
|
||||
if (!(c->client = socket_client_new_unix(c->mainloop, server))) {
|
||||
if (!(c->client = socket_client_new_unix(c->mainloop, server ? server : DEFAULT_SERVER))) {
|
||||
c->errno = PA_ERROR_CONNECTIONREFUSED;
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue