aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/plugins/ShoutOutputPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-28 23:39:48 +0100
committerMax Kellermann <max@duempel.org>2014-01-29 08:10:18 +0100
commitbf803e241f4f1210e7ed1e71895a561de81d7a94 (patch)
treed9894df2da6ad9478d5459f7a2af0974bf5a4979 /src/output/plugins/ShoutOutputPlugin.cxx
parent8a8d023f90e057ae9b70377a132f4259b173d436 (diff)
downloadmpd-bf803e241f4f1210e7ed1e71895a561de81d7a94.tar.gz
mpd-bf803e241f4f1210e7ed1e71895a561de81d7a94.tar.xz
mpd-bf803e241f4f1210e7ed1e71895a561de81d7a94.zip
AudioOutput: pass plugin to constructor
Make it "const".
Diffstat (limited to 'src/output/plugins/ShoutOutputPlugin.cxx')
-rw-r--r--src/output/plugins/ShoutOutputPlugin.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/output/plugins/ShoutOutputPlugin.cxx b/src/output/plugins/ShoutOutputPlugin.cxx
index 1f60f72a1..91dfd2477 100644
--- a/src/output/plugins/ShoutOutputPlugin.cxx
+++ b/src/output/plugins/ShoutOutputPlugin.cxx
@@ -54,7 +54,8 @@ struct ShoutOutput final {
uint8_t buffer[32768];
ShoutOutput()
- :shout_conn(shout_new()),
+ :base(shout_output_plugin),
+ shout_conn(shout_new()),
shout_meta(shout_metadata_new()),
quality(-2.0),
bitrate(-1),
@@ -68,8 +69,7 @@ struct ShoutOutput final {
}
bool Initialize(const config_param &param, Error &error) {
- return ao_base_init(&base, &shout_output_plugin, param,
- error);
+ return ao_base_init(&base, param, error);
}
bool Configure(const config_param &param, Error &error);