diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-09-12 23:40:53 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-09-12 23:40:53 +0000 |
commit | b1ab6869fbe705f06faa12310c76b7d856030d81 (patch) | |
tree | b3674414f767becdee5e389969620663487c54c7 /polyp/protocol-esound.c | |
parent | b681622b17e23878cdd0683fdf57dcc35c562c43 (diff) |
fix public= on native and esound protocol
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@195 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/protocol-esound.c')
-rw-r--r-- | polyp/protocol-esound.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/polyp/protocol-esound.c b/polyp/protocol-esound.c index 755ec21d..ee64c484 100644 --- a/polyp/protocol-esound.c +++ b/polyp/protocol-esound.c @@ -995,17 +995,23 @@ static void on_connection(struct pa_socket_server*s, struct pa_iochannel *io, vo struct pa_protocol_esound* pa_protocol_esound_new(struct pa_core*core, struct pa_socket_server *server, struct pa_module *m, struct pa_modargs *ma) { struct pa_protocol_esound *p; + int public; assert(core && server && ma); p = pa_xmalloc(sizeof(struct pa_protocol_esound)); + if (pa_modargs_get_value_boolean(ma, "public", &public) < 0) { + pa_log(__FILE__": public= expects a boolean argument.\n"); + return NULL; + } + if (pa_authkey_load_auto(pa_modargs_get_value(ma, "cookie", DEFAULT_COOKIE_FILE), p->esd_key, sizeof(p->esd_key)) < 0) { pa_xfree(p); return NULL; } p->module = m; - p->public = 0; + p->public = public; p->server = server; pa_socket_server_set_callback(p->server, on_connection, p); p->core = core; |