diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-27 02:03:07 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-28 14:19:00 -0700 |
commit | 7812cd9286fa7581b5ea18337e875ad98a2d8bd6 (patch) | |
tree | ba9899abacb25162ec0c8e64eea06033748cc5ad /src/playlist.c | |
parent | c7955f31bc044510ed3a2fb84c5e6590e8cbd428 (diff) | |
download | mpd-7812cd9286fa7581b5ea18337e875ad98a2d8bd6.tar.gz mpd-7812cd9286fa7581b5ea18337e875ad98a2d8bd6.tar.xz mpd-7812cd9286fa7581b5ea18337e875ad98a2d8bd6.zip |
advance to the next song on decoder errors
Fix this regression introduced in the core rewrite so that we
now skip to the next song when we encounter an error with the
song we tried to decode.
Diffstat (limited to '')
-rw-r--r-- | src/playlist.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/playlist.c b/src/playlist.c index d454b4ad2..8b7416d2e 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -528,7 +528,11 @@ static void syncPlaylistWithQueue(void) if (!ob_synced()) return; - if (playlist.queued >= 0 && + if (player_errno != PLAYER_ERROR_NONE) { + DEBUG("playlist: error: %s\n", player_strerror()); + playlist.current = playlist.queued; + player_clearerror(); + } else if (playlist.queued >= 0 && playlist.current != playlist.queued) { DEBUG("playlist: now playing queued song\n"); DEBUG("%s:%d queued: %d\n",__func__,__LINE__,playlist.queued); |