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/output/plugins/WinmmOutputPlugin.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/output/plugins/WinmmOutputPlugin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output/plugins/WinmmOutputPlugin.cxx b/src/output/plugins/WinmmOutputPlugin.cxx index d61f2055a..cae39df5f 100644 --- a/src/output/plugins/WinmmOutputPlugin.cxx +++ b/src/output/plugins/WinmmOutputPlugin.cxx @@ -59,9 +59,9 @@ struct WinmmOutput { static constexpr Domain winmm_output_domain("winmm_output"); HWAVEOUT -winmm_output_get_handle(WinmmOutput *output) +winmm_output_get_handle(WinmmOutput &output) { - return output->handle; + return output.handle; } static bool |