aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/plugins
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-29 22:57:46 +0100
committerMax Kellermann <max@duempel.org>2014-12-29 23:07:18 +0100
commit977834179a790e8573eb8cd12252e0c160b69bd7 (patch)
tree02f08709edf72f961098c9437a992b5fee1ee06b /src/output/plugins
parentb42732743d44feccacbaba671ab460b0a2d3ab4b (diff)
downloadmpd-977834179a790e8573eb8cd12252e0c160b69bd7.tar.gz
mpd-977834179a790e8573eb8cd12252e0c160b69bd7.tar.xz
mpd-977834179a790e8573eb8cd12252e0c160b69bd7.zip
output/pulse: move initialization to constructor
Diffstat (limited to 'src/output/plugins')
-rw-r--r--src/output/plugins/PulseOutputPlugin.cxx8
1 files 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 &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;
}