From 460e071a6b411fe6aeef514813bc60647464d9d7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 29 Sep 2009 21:49:53 +0200 Subject: [PATCH] mpdclient: reactivate incremental playlist changes A while ago, I broke "plchanges" calls because I forgot to add a "!" before playlist_is_empty(). --- NEWS | 1 + src/mpdclient.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 5664655..5ca9a40 100644 --- 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 diff --git a/src/mpdclient.c b/src/mpdclient.c index f6cd087..933a148 100644 --- a/src/mpdclient.c +++ b/src/mpdclient.c @@ -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); -- 2.30.2