aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-21 16:17:57 +0100
committerMax Kellermann <max@duempel.org>2009-01-21 16:17:57 +0100
commit699b31178dd5882fa474946b6ca16d8d0d9daff0 (patch)
tree6c09abf8ba7459149512abf635a6ec11eeb81809 /src
parent6fd8c28d2e8076a52f18ec4171efcddd48356761 (diff)
downloadmpd-699b31178dd5882fa474946b6ca16d8d0d9daff0.tar.gz
mpd-699b31178dd5882fa474946b6ca16d8d0d9daff0.tar.xz
mpd-699b31178dd5882fa474946b6ca16d8d0d9daff0.zip
playlist: use the "enum player_error" type
Don't assign the result of getPlayerError() to an integer.
Diffstat (limited to '')
-rw-r--r--src/playlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 44344cf04..3582dfd98 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -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;