From bfa7da943c2ee90ca84664ce0d97b77ed27311f9 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Tue, 3 Nov 2009 20:01:19 +0100
Subject: player_thread: don't set errored_song on audio error

It's not used if pc.error==PLAYER_ERROR_AUDIO.
---
 src/player_thread.c | 2 --
 1 file changed, 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;
-- 
cgit v1.2.3