Commit b69246c6 authored by Max Kellermann's avatar Max Kellermann

player_thread: don't call audio_output_all_check() if paused

When the audio output fails to open, MPD pauses playback, but doesn't reset player.play_audio_format. This leads to an assertion failure in audio_output_all_check() on the next REFRESH command, because no audio output is open.
parent f4ea9b73
......@@ -409,7 +409,8 @@ static void player_process_command(struct player *player)
break;
case PLAYER_COMMAND_REFRESH:
if (audio_format_defined(&player->play_audio_format))
if (audio_format_defined(&player->play_audio_format) &&
!player->paused)
audio_output_all_check();
pc.elapsed_time = audio_output_all_get_elapsed_time();
......
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