diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-10-27 14:42:56 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-10-27 14:42:56 +0000 |
commit | 19f2acbd0a9d199b77ad71eaf206319f6f12e323 (patch) | |
tree | 48e505f99c7c5315bae0466026f2db17a1985066 /polyp/module-pipe-sink.c | |
parent | 49e16ffc6c87fd879e4143730fd211560ffee0a4 (diff) |
add null sink
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@259 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/module-pipe-sink.c')
-rw-r--r-- | polyp/module-pipe-sink.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/polyp/module-pipe-sink.c b/polyp/module-pipe-sink.c index c5097fb7..7c779f7d 100644 --- a/polyp/module-pipe-sink.c +++ b/polyp/module-pipe-sink.c @@ -162,9 +162,10 @@ int pa__init(struct pa_core *c, struct pa_module*m) { } u = pa_xmalloc0(sizeof(struct userdata)); - u->filename = pa_xstrdup(p); u->core = c; + u->module = m; + m->userdata = u; if (!(u->sink = pa_sink_new(c, pa_modargs_get_value(ma, "sink_name", DEFAULT_SINK_NAME), 0, &ss))) { pa_log(__FILE__": failed to create sink.\n"); @@ -187,9 +188,6 @@ int pa__init(struct pa_core *c, struct pa_module*m) { assert(u->defer_event); c->mainloop->defer_enable(u->defer_event, 0); - u->module = m; - m->userdata = u; - pa_modargs_free(ma); return 0; |