diff options
Diffstat (limited to 'polyp/module-null-sink.c')
-rw-r--r-- | polyp/module-null-sink.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/polyp/module-null-sink.c b/polyp/module-null-sink.c index 6d4ea89b..fcac1ea4 100644 --- a/polyp/module-null-sink.c +++ b/polyp/module-null-sink.c @@ -49,6 +49,8 @@ PA_MODULE_USAGE("format=<sample format> channels=<number of channels> rate=<samp #define DEFAULT_SINK_NAME "null" +#define PA_TYPEID_NULL PA_TYPEID_MAKE('N', 'U', 'L', 'L') + struct userdata { struct pa_core *core; struct pa_module *module; @@ -106,7 +108,7 @@ int pa__init(struct pa_core *c, struct pa_module*m) { 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))) { + if (!(u->sink = pa_sink_new(c, PA_TYPEID_NULL, pa_modargs_get_value(ma, "sink_name", DEFAULT_SINK_NAME), 0, &ss))) { pa_log(__FILE__": failed to create sink.\n"); goto fail; } |