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:
parent
734676fcfb
commit
bfa7da943c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user