null-sink: allow clients to configure the supported formats

The set_formats() callback is already implemented, so the only thing
missing was the SET_FORMATS flag.
This commit is contained in:
Tanu Kaskinen 2019-09-19 10:50:58 +03:00 committed by Arun Raghavan
parent 0d22558b47
commit d72a3a5eca

View 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) {