diff options
author | Max Kellermann <max@duempel.org> | 2009-10-15 20:47:00 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-10-15 20:47:00 +0200 |
commit | b69246c6463db24db3608634c59acfb5b6276665 (patch) | |
tree | ad970b04b03cbc9b3a5b2183b4351f712b2fb6ce /src | |
parent | f4ea9b7393a0e5802c2689af1696cd5de8fd961a (diff) | |
download | mpd-b69246c6463db24db3608634c59acfb5b6276665.tar.gz mpd-b69246c6463db24db3608634c59acfb5b6276665.tar.xz mpd-b69246c6463db24db3608634c59acfb5b6276665.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/player_thread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/player_thread.c b/src/player_thread.c index 885cd2ce1..f68f61a04 100644 --- a/src/player_thread.c +++ b/src/player_thread.c @@ -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(); |