Code

mpdclient: reactivate incremental playlist changes
authorMax Kellermann <max@duempel.org>
Tue, 29 Sep 2009 19:49:53 +0000 (21:49 +0200)
committerMax Kellermann <max@duempel.org>
Tue, 29 Sep 2009 19:49:53 +0000 (21:49 +0200)
A while ago, I broke "plchanges" calls because I forgot to add a "!"
before playlist_is_empty().

NEWS
src/mpdclient.c

diff --git a/NEWS b/NEWS
index 566465527cd3d218c56acf42898e33979ffaa12b..5ca9a40fc4824051b587c88bea139efc568af069 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
 ncmpc 0.16 - not yet released
 * using libmpdclient 2.0 instead of built-in libmpdclient
 * allow multiple queued database updates
+* reactivate incremental playlist changes
 
 
 ncmpc 0.15 - 2009-09-24
index f6cd087692482dd8bcdafb8062eed2a3cca7a072..933a14874772a6890e7cf8b44dde5407c4ebe6c4 100644 (file)
@@ -246,7 +246,7 @@ mpdclient_update(struct mpdclient *c)
 
        /* check if the playlist needs an update */
        if (c->playlist.id != mpd_status_get_queue_version(c->status)) {
-               if (playlist_is_empty(&c->playlist))
+               if (!playlist_is_empty(&c->playlist))
                        retval = mpdclient_playlist_update_changes(c);
                else
                        retval = mpdclient_playlist_update(c);