mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
add null sink
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@259 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
49e16ffc6c
commit
19f2acbd0a
4 changed files with 161 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue