playlist: increase playlist version after loading state

After the state file has been loaded, the playlist version is still
"1", and "plchanges 1" returns the whole playlist.  Fix this by
increasing the playlist version after the state file has been loaded.
This commit is contained in:
Max Kellermann 2009-02-04 23:50:04 +01:00
parent 5d0c83ba5e
commit b358962960

View File

@ -113,6 +113,8 @@ playlist_state_load(FILE *fp, struct playlist *playlist,
break;
}
}
queue_increment_version(&playlist->queue);
}
void