patch from np for orderPlaylist()
git-svn-id: https://svn.musicpd.org/mpd/trunk@1673 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
be37cb02f2
commit
188011ac52
@ -1090,7 +1090,9 @@ int moveSongInPlaylistById(FILE * fp, int id1, int to) {
|
||||
void orderPlaylist() {
|
||||
int i;
|
||||
|
||||
playlist.current = playlist.order[playlist.current];
|
||||
if(playlist.current >= 0 && playlist.current < playlist.length) {
|
||||
playlist.current = playlist.order[playlist.current];
|
||||
}
|
||||
|
||||
if(playlist_state==PLAYLIST_STATE_PLAY) {
|
||||
if(playlist.queued>=0) {
|
||||
|
Loading…
Reference in New Issue
Block a user