diff options
author | Max Kellermann <max@duempel.org> | 2014-01-29 00:53:49 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-29 08:10:36 +0100 |
commit | cb7366f47245bf259cef0b8c863eb3b724cff683 (patch) | |
tree | e1bb8b9f96124a6ee94effaec898408a5547ffe6 /src/output/OutputControl.cxx | |
parent | bf803e241f4f1210e7ed1e71895a561de81d7a94 (diff) | |
download | mpd-cb7366f47245bf259cef0b8c863eb3b724cff683.tar.gz mpd-cb7366f47245bf259cef0b8c863eb3b724cff683.tar.xz mpd-cb7366f47245bf259cef0b8c863eb3b724cff683.zip |
AudioOutput: make "plugin" a reference
Diffstat (limited to 'src/output/OutputControl.cxx')
-rw-r--r-- | src/output/OutputControl.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/output/OutputControl.cxx b/src/output/OutputControl.cxx index 5b4c4f487..a956faed3 100644 --- a/src/output/OutputControl.cxx +++ b/src/output/OutputControl.cxx @@ -104,7 +104,7 @@ void audio_output_enable(AudioOutput *ao) { if (!ao->thread.IsDefined()) { - if (ao->plugin->enable == nullptr) { + if (ao->plugin.enable == nullptr) { /* don't bother to start the thread now if the device doesn't even have a enable() method; just assign the variable and we're done */ @@ -122,7 +122,7 @@ void audio_output_disable(AudioOutput *ao) { if (!ao->thread.IsDefined()) { - if (ao->plugin->disable == nullptr) + if (ao->plugin.disable == nullptr) ao->really_enabled = false; else /* if there's no thread yet, the device cannot @@ -248,7 +248,7 @@ audio_output_play(AudioOutput *ao) void audio_output_pause(AudioOutput *ao) { - if (ao->mixer != nullptr && ao->plugin->pause == nullptr) + if (ao->mixer != nullptr && ao->plugin.pause == nullptr) /* the device has no pause mode: close the mixer, unless its "global" flag is set (checked by mixer_auto_close()) */ |