playlist: use the "enum player_error" type

Don't assign the result of getPlayerError() to an integer.
This commit is contained in:
Max Kellermann 2009-01-21 16:17:57 +01:00
parent 6fd8c28d2e
commit 699b31178d

View File

@ -914,7 +914,7 @@ void nextSongInPlaylist(void)
void playPlaylistIfPlayerStopped(void)
{
if (getPlayerState() == PLAYER_STATE_STOP) {
int error = getPlayerError();
enum player_error error = getPlayerError();
if (error == PLAYER_ERROR_NOERROR)
playlist_errorCount = 0;