diff options
author | Max Kellermann <max@duempel.org> | 2012-08-08 22:22:00 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-08 22:28:59 +0200 |
commit | d35d2b269f77a0c4ec5fac9ac2df6d107b5b2d6d (patch) | |
tree | d10bf911f7dcac2015da18946f73bc91a5fff0e8 /src/playlist.c | |
parent | fa84ed412db4cc033989d1b60535dd6207e1ff23 (diff) | |
download | mpd-d35d2b269f77a0c4ec5fac9ac2df6d107b5b2d6d.tar.gz mpd-d35d2b269f77a0c4ec5fac9ac2df6d107b5b2d6d.tar.xz mpd-d35d2b269f77a0c4ec5fac9ac2df6d107b5b2d6d.zip |
player_control: rename player_error enum values
Diffstat (limited to 'src/playlist.c')
-rw-r--r-- | src/playlist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/playlist.c b/src/playlist.c index d14c26aa7..6b8866941 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -259,13 +259,13 @@ playlist_resume_playback(struct playlist *playlist, struct player_control *pc) assert(pc_get_state(pc) == PLAYER_STATE_STOP); error = pc_get_error(pc); - if (error == PLAYER_ERROR_NOERROR) + if (error == PLAYER_ERROR_NONE) playlist->error_count = 0; else ++playlist->error_count; - if ((playlist->stop_on_error && error != PLAYER_ERROR_NOERROR) || - error == PLAYER_ERROR_AUDIO || + if ((playlist->stop_on_error && error != PLAYER_ERROR_NONE) || + error == PLAYER_ERROR_OUTPUT || playlist->error_count >= queue_length(&playlist->queue)) /* too many errors, or critical error: stop playback */ |