Commit 97783417 authored by Max Kellermann's avatar Max Kellermann

output/pulse: move initialization to constructor

parent b4273274
......@@ -57,7 +57,9 @@ struct PulseOutput {
size_t writable;
PulseOutput()
:base(pulse_output_plugin) {}
:base(pulse_output_plugin),
mixer(nullptr),
mainloop(nullptr), stream(nullptr) {}
};
void
......@@ -328,10 +330,6 @@ pulse_output_init(const config_param &param, Error &error)
po->server = param.GetBlockValue("server");
po->sink = param.GetBlockValue("sink");
po->mixer = nullptr;
po->mainloop = nullptr;
po->stream = nullptr;
return &po->base;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment