Code

list_window: moved string matching to match.h
[ncmpc.git] / src / playlist.c
index 76a448ba2fbc460e9e4a4418e48996b05106451b..19a1b419cc08f8ac8f08cce603d647c73bae9606 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id$
- *
  * (c) 2004 by Kalle Wallin <kaw@linux.se>
  * (c) 2008 Max Kellermann <max@duempel.org>
  *
@@ -21,7 +19,6 @@
 
 #include "playlist.h"
 #include "mpdclient.h"
-#include "ncmpc.h"
 
 #include <string.h>
 
@@ -41,6 +38,8 @@ playlist_clear(struct mpdclient_playlist *playlist)
 {
        guint i;
 
+       playlist->id = 0;
+
        for (i = 0; i < playlist->list->len; ++i) {
                struct mpd_song *song = playlist_get(playlist, i);