diff options
Diffstat (limited to 'polyp/module-pipe-sink.c')
-rw-r--r-- | polyp/module-pipe-sink.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/polyp/module-pipe-sink.c b/polyp/module-pipe-sink.c index 6c441cc8..b6d8dc2e 100644 --- a/polyp/module-pipe-sink.c +++ b/polyp/module-pipe-sink.c @@ -50,6 +50,8 @@ PA_MODULE_USAGE("sink_name=<name for the sink> file=<path of the FIFO> format=<s #define DEFAULT_FIFO_NAME "/tmp/music.output" #define DEFAULT_SINK_NAME "fifo_output" +#define PA_TYPEID_PIPE PA_TYPEID_MAKE('P', 'I', 'P', 'E') + struct userdata { struct pa_core *core; @@ -175,7 +177,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_PIPE, pa_modargs_get_value(ma, "sink_name", DEFAULT_SINK_NAME), 0, &ss))) { pa_log(__FILE__": failed to create sink.\n"); goto fail; } |