aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c
diff options
context:
space:
mode:
authorAvuton Olrich <avuton@gmail.com>2006-07-20 18:53:56 +0000
committerAvuton Olrich <avuton@gmail.com>2006-07-20 18:53:56 +0000
commit00e67be7c98cedf3ea60c10d4a527f30cdfa473c (patch)
tree969f972985004c49530b1f4ca6f9782cb3b2acac /src/playlist.c
parent29a25b9933b32800f58dd73d5d1fc21993071c92 (diff)
downloadmpd-00e67be7c98cedf3ea60c10d4a527f30cdfa473c.tar.gz
mpd-00e67be7c98cedf3ea60c10d4a527f30cdfa473c.tar.xz
mpd-00e67be7c98cedf3ea60c10d4a527f30cdfa473c.zip
Add mpd-indent.sh
Add a few new options for indent to try to make things a bit cleaner git-svn-id: https://svn.musicpd.org/mpd/trunk@4411 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/playlist.c')
-rw-r--r--src/playlist.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/playlist.c b/src/playlist.c
index e1ab04344..a37ee76f3 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -1071,7 +1071,11 @@ void playPlaylistIfPlayerStopped(void)
else
playlist_errorCount++;
- if (playlist_state == PLAYLIST_STATE_PLAY && ((playlist_stopOnError && error != PLAYER_ERROR_NOERROR) || error == PLAYER_ERROR_AUDIO || error == PLAYER_ERROR_SYSTEM || playlist_errorCount >= playlist.length)) {
+ if (playlist_state == PLAYLIST_STATE_PLAY
+ && ((playlist_stopOnError && error != PLAYER_ERROR_NOERROR)
+ || error == PLAYER_ERROR_AUDIO
+ || error == PLAYER_ERROR_SYSTEM
+ || playlist_errorCount >= playlist.length)) {
stopPlaylist(stderr);
} else if (playlist_noGoToNext)
currentSongInPlaylist(stderr);