output/pulse: move initialization to constructor

This commit is contained in:
Max Kellermann 2014-12-29 22:57:46 +01:00
parent b42732743d
commit 977834179a
1 changed files with 3 additions and 5 deletions

View File

@ -57,7 +57,9 @@ struct PulseOutput {
size_t writable; size_t writable;
PulseOutput() PulseOutput()
:base(pulse_output_plugin) {} :base(pulse_output_plugin),
mixer(nullptr),
mainloop(nullptr), stream(nullptr) {}
}; };
void void
@ -328,10 +330,6 @@ pulse_output_init(const config_param &param, Error &error)
po->server = param.GetBlockValue("server"); po->server = param.GetBlockValue("server");
po->sink = param.GetBlockValue("sink"); po->sink = param.GetBlockValue("sink");
po->mixer = nullptr;
po->mainloop = nullptr;
po->stream = nullptr;
return &po->base; return &po->base;
} }