make a set of nested if statements less ambigous
git-svn-id: https://svn.musicpd.org/mpd/trunk@209 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
7dd33a490b
commit
936d53bc61
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue