player_thread: don't set errored_song on audio error

It's not used if pc.error==PLAYER_ERROR_AUDIO.
This commit is contained in:
Max Kellermann 2009-11-03 20:01:19 +01:00
parent 734676fcfb
commit bfa7da943c

View File

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