diff options
author | Max Kellermann <max@duempel.org> | 2014-02-06 21:10:12 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-06 21:10:12 +0100 |
commit | 0a0659d737e8788fc1ba02e8c113e55204782716 (patch) | |
tree | 8855ba68e8648bbb81ea94899406e4b2988ae489 /src/mixer/plugins/RoarMixerPlugin.cxx | |
parent | b6df4680df08db7827af56d5adf2a04264f2dcb9 (diff) | |
download | mpd-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 '')
-rw-r--r-- | src/mixer/plugins/RoarMixerPlugin.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mixer/plugins/RoarMixerPlugin.cxx b/src/mixer/plugins/RoarMixerPlugin.cxx index d1ac8a6e3..7c2a25dfb 100644 --- a/src/mixer/plugins/RoarMixerPlugin.cxx +++ b/src/mixer/plugins/RoarMixerPlugin.cxx @@ -26,10 +26,10 @@ class RoarMixer final : public Mixer { /** the base mixer class */ - RoarOutput *self; + RoarOutput &self; public: - RoarMixer(RoarOutput *_output) + RoarMixer(RoarOutput &_output) :Mixer(roar_mixer_plugin), self(_output) {} @@ -46,11 +46,11 @@ public: }; static Mixer * -roar_mixer_init(gcc_unused EventLoop &event_loop, void *ao, +roar_mixer_init(gcc_unused EventLoop &event_loop, AudioOutput &ao, gcc_unused const config_param ¶m, gcc_unused Error &error) { - return new RoarMixer((RoarOutput *)ao); + return new RoarMixer((RoarOutput &)ao); } int |