output_control: close mixer on pause

For non-global mixers (only "pulse" currently), close the mixer when
MPD playback is paused.
This commit is contained in:
Max Kellermann 2009-04-21 22:17:52 +02:00
parent c9c0415d65
commit c7c809ecba

View File

@ -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);
}