Commit c7c809ec authored by Max Kellermann's avatar Max Kellermann

output_control: close mixer on pause

For non-global mixers (only "pulse" currently), close the mixer when MPD playback is paused.
parent c9c0415d
...@@ -137,6 +137,12 @@ audio_output_play(struct audio_output *ao) ...@@ -137,6 +137,12 @@ audio_output_play(struct audio_output *ao)
void audio_output_pause(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); ao_command_async(ao, AO_COMMAND_PAUSE);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment