summaryrefslogtreecommitdiffstats
path: root/polyp/module-null-sink.c
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/module-null-sink.c')
-rw-r--r--polyp/module-null-sink.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/polyp/module-null-sink.c b/polyp/module-null-sink.c
index b26ea50b..93abca78 100644
--- a/polyp/module-null-sink.c
+++ b/polyp/module-null-sink.c
@@ -49,8 +49,6 @@ 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 {
pa_core *core;
pa_module *module;
@@ -108,7 +106,7 @@ int pa__init(pa_core *c, pa_module*m) {
u->module = m;
m->userdata = u;
- if (!(u->sink = pa_sink_new(c, PA_TYPEID_NULL, pa_modargs_get_value(ma, "sink_name", DEFAULT_SINK_NAME), 0, &ss))) {
+ if (!(u->sink = pa_sink_new(c, __FILE__, pa_modargs_get_value(ma, "sink_name", DEFAULT_SINK_NAME), 0, &ss, NULL))) {
pa_log(__FILE__": failed to create sink.\n");
goto fail;
}