From 977834179a790e8573eb8cd12252e0c160b69bd7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 29 Dec 2014 22:57:46 +0100 Subject: [PATCH] output/pulse: move initialization to constructor --- src/output/plugins/PulseOutputPlugin.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/output/plugins/PulseOutputPlugin.cxx b/src/output/plugins/PulseOutputPlugin.cxx index 96c898ddb..f7e463e28 100644 --- a/src/output/plugins/PulseOutputPlugin.cxx +++ b/src/output/plugins/PulseOutputPlugin.cxx @@ -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; }