player_control: clear errored_song in clearPlayerError()

Without the player error code, it errored_song variable is not used,
and should be cleared, to avoid invalid access in pc_song_deleted().
This commit is contained in:
Max Kellermann 2009-10-08 21:00:16 +02:00
parent 76953a9748
commit 2ec89c6304

View File

@ -149,7 +149,8 @@ enum player_state getPlayerState(void)
void clearPlayerError(void)
{
pc.error = 0;
pc.error = PLAYER_ERROR_NOERROR;
pc.errored_song = NULL;
}
enum player_error getPlayerError(void)