output/pulse: move initialization to constructor
This commit is contained in:
parent
b42732743d
commit
977834179a
|
@ -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 ¶m, Error &error)
|
|||
po->server = param.GetBlockValue("server");
|
||||
po->sink = param.GetBlockValue("sink");
|
||||
|
||||
po->mixer = nullptr;
|
||||
po->mainloop = nullptr;
|
||||
po->stream = nullptr;
|
||||
|
||||
return &po->base;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue