diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-04-11 01:53:25 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-04-11 01:53:25 +0000 |
commit | 12ee01660739b19fa9b0c112e6a6b266a4e2d6a8 (patch) | |
tree | ca377875b1101607907243c3bf330ad80b7018cf /src/playlist.c | |
parent | 171a7752a8fab0e1c55be1469a331ef20a7b3755 (diff) | |
download | mpd-12ee01660739b19fa9b0c112e6a6b266a4e2d6a8.tar.gz mpd-12ee01660739b19fa9b0c112e6a6b266a4e2d6a8.tar.xz mpd-12ee01660739b19fa9b0c112e6a6b266a4e2d6a8.zip |
make "update" command background/non-blocking
git-svn-id: https://svn.musicpd.org/mpd/trunk@665 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/playlist.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/playlist.c b/src/playlist.c index 957a4a748..856dea8fa 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -144,7 +144,9 @@ void finishPlaylist() { stopPlaylist(stderr); clearPlaylist(stderr); free(playlist.songs); + playlist.songs = NULL; free(playlist.order); + playlist.order = NULL; } int clearPlaylist(FILE * fp) { @@ -626,6 +628,8 @@ int deleteFromPlaylist(FILE * fp, int song) { void deleteASongFromPlaylist(Song * song) { int i; + + if(NULL==playlist.songs) return; for(i=0;i<playlist.length;i++) { if(song==playlist.songs[i]) { |