aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_thread.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-03 20:01:19 +0100
committerMax Kellermann <max@duempel.org>2009-11-03 20:01:19 +0100
commitbfa7da943c2ee90ca84664ce0d97b77ed27311f9 (patch)
treee06d703f547ec2dc646a9934427b1f19d9f159d9 /src/player_thread.c
parent734676fcfb73061917f0db726f5e3e897b2dd8c6 (diff)
downloadmpd-bfa7da943c2ee90ca84664ce0d97b77ed27311f9.tar.gz
mpd-bfa7da943c2ee90ca84664ce0d97b77ed27311f9.tar.xz
mpd-bfa7da943c2ee90ca84664ce0d97b77ed27311f9.zip
player_thread: don't set errored_song on audio error
It's not used if pc.error==PLAYER_ERROR_AUDIO.
Diffstat (limited to 'src/player_thread.c')
-rw-r--r--src/player_thread.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index e8470c827..e648ab375 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -243,7 +243,6 @@ player_check_decoder_startup(struct player *player)
g_free(uri);
assert(dc->next_song == NULL || dc->next_song->uri != NULL);
- pc.errored_song = dc->next_song;
pc.error = PLAYER_ERROR_AUDIO;
/* pause: the user may resume playback as soon
@@ -435,7 +434,6 @@ static void player_process_command(struct player *player)
/* the audio device has failed - rollback to
pause mode */
assert(dc->next_song == NULL || dc->next_song->uri != NULL);
- pc.errored_song = dc->next_song;
pc.error = PLAYER_ERROR_AUDIO;
player->paused = true;