aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/Init.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-06 21:10:12 +0100
committerMax Kellermann <max@duempel.org>2014-02-06 21:10:12 +0100
commit0a0659d737e8788fc1ba02e8c113e55204782716 (patch)
tree8855ba68e8648bbb81ea94899406e4b2988ae489 /src/output/Init.cxx
parentb6df4680df08db7827af56d5adf2a04264f2dcb9 (diff)
downloadmpd-0a0659d737e8788fc1ba02e8c113e55204782716.tar.gz
mpd-0a0659d737e8788fc1ba02e8c113e55204782716.tar.xz
mpd-0a0659d737e8788fc1ba02e8c113e55204782716.zip
mixer/Plugin: pass AudioOutput reference to init()
Passing a void pointer is unsafe.
Diffstat (limited to 'src/output/Init.cxx')
-rw-r--r--src/output/Init.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output/Init.cxx b/src/output/Init.cxx
index 8d1e7d341..f69ea362f 100644
--- a/src/output/Init.cxx
+++ b/src/output/Init.cxx
@@ -129,10 +129,10 @@ audio_output_load_mixer(EventLoop &event_loop, AudioOutput *ao,
if (plugin == nullptr)
return nullptr;
- return mixer_new(event_loop, *plugin, ao, param, error);
+ return mixer_new(event_loop, *plugin, *ao, param, error);
case MIXER_TYPE_SOFTWARE:
- mixer = mixer_new(event_loop, software_mixer_plugin, nullptr,
+ mixer = mixer_new(event_loop, software_mixer_plugin, *ao,
config_param(),
IgnoreError());
assert(mixer != nullptr);