output/pulse: move initialization to constructor
This commit is contained in:
parent
b42732743d
commit
977834179a
|
@ -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 ¶m, 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue