aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-03-05 19:05:23 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-03-05 19:05:23 +0000
commit936d53bc61df2c49feed94b7c9780654182e7edf (patch)
treeb306f5f14d23ed185ec823f8eacba67c97caa0dc /src
parent7dd33a490b04a30a48a8fb966edd7ace46ca8a9a (diff)
downloadmpd-936d53bc61df2c49feed94b7c9780654182e7edf.tar.gz
mpd-936d53bc61df2c49feed94b7c9780654182e7edf.tar.xz
mpd-936d53bc61df2c49feed94b7c9780654182e7edf.zip
make a set of nested if statements less ambigous
git-svn-id: https://svn.musicpd.org/mpd/trunk@209 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r--src/playlist.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 4c2adc5d9..0455673d7 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -1231,6 +1231,9 @@ int seekSongInPlaylist(FILE * fp, int song, float time) {
}
else if(playPlaylistOrderNumber(fp,i)<0) return -1;
- if(playlist.current!=i) if(playPlaylistOrderNumber(fp,i)<0) return -1;
+ if(playlist.current!=i) {
+ if(playPlaylistOrderNumber(fp,i)<0) return -1;
+ }
+
return playerSeek(fp,playlist.songs[playlist.order[i]]->utf8file,time);
}