diff options
author | Max Kellermann <max@duempel.org> | 2009-04-21 22:17:52 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-04-21 22:17:52 +0200 |
commit | c7c809ecba1ce0dd005c9235f189021558f4b984 (patch) | |
tree | 20ebc4bd289c21fe07091bbe95b8288ab33c954f | |
parent | c9c0415d65dedf13eac09abbbb86dfe17bbc8570 (diff) |
output_control: close mixer on pause
For non-global mixers (only "pulse" currently), close the mixer when
MPD playback is paused.
-rw-r--r-- | src/output_control.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/output_control.c b/src/output_control.c index 4131594f0..eac9bdfcb 100644 --- a/src/output_control.c +++ b/src/output_control.c @@ -137,6 +137,12 @@ audio_output_play(struct audio_output *ao) void audio_output_pause(struct audio_output *ao) { + if (ao->mixer != NULL && ao->plugin->pause == NULL) + /* the device has no pause mode: close the mixer, + unless its "global" flag is set (checked by + mixer_auto_close()) */ + mixer_auto_close(ao->mixer); + ao_command_async(ao, AO_COMMAND_PAUSE); } |