null-sink: allow clients to configure the supported formats
authorTanu Kaskinen <tanuk@iki.fi>
Thu, 19 Sep 2019 07:50:58 +0000 (10:50 +0300)
committerArun Raghavan <arun@arunraghavan.net>
Tue, 24 Sep 2019 02:36:56 +0000 (02:36 +0000)
The set_formats() callback is already implemented, so the only thing
missing was the SET_FORMATS flag.

src/modules/module-null-sink.c

index ac57882..336676b 100644 (file)
@@ -360,7 +360,7 @@ int pa__init(pa_module*m) {
         goto fail;
     }
 
-    u->sink = pa_sink_new(m->core, &data, PA_SINK_LATENCY|PA_SINK_DYNAMIC_LATENCY);
+    u->sink = pa_sink_new(m->core, &data, PA_SINK_LATENCY | PA_SINK_DYNAMIC_LATENCY | PA_SINK_SET_FORMATS);
     pa_sink_new_data_done(&data);
 
     if (!u->sink) {