From b35896296043fb5612ea52f0fadda48479aca860 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 4 Feb 2009 23:50:04 +0100 Subject: 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. --- src/playlist_state.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3