diff options
author | Max Kellermann <max@duempel.org> | 2009-02-04 23:50:04 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-02-04 23:50:04 +0100 |
commit | b35896296043fb5612ea52f0fadda48479aca860 (patch) | |
tree | 7042a3091033e98d385bcdce77b978738530b30b /src | |
parent | 5d0c83ba5ec177217b1ccf9832fd749f2c8b58a5 (diff) | |
download | mpd-b35896296043fb5612ea52f0fadda48479aca860.tar.gz mpd-b35896296043fb5612ea52f0fadda48479aca860.tar.xz mpd-b35896296043fb5612ea52f0fadda48479aca860.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/playlist_state.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/playlist_state.c b/src/playlist_state.c index 1f15ef0b3..0a30bbea6 100644 --- a/src/playlist_state.c +++ b/src/playlist_state.c @@ -113,6 +113,8 @@ playlist_state_load(FILE *fp, struct playlist *playlist, break; } } + + queue_increment_version(&playlist->queue); } void |