From: Max Kellermann Date: Tue, 29 Sep 2009 20:14:35 +0000 (+0200) Subject: require MPD 0.12 X-Git-Tag: release-0.16~297 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e240f08a033e03d1aa7e6d8c1a29b92ee8d02746;p=ncmpc.git require MPD 0.12 We will take advantage of the "addid" command, which was introduced in MPD 0.12. Hey, who's still running 0.11 these days? --- diff --git a/NEWS b/NEWS index 5ca9a40..3c4d0fc 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,6 @@ ncmpc 0.16 - not yet released * using libmpdclient 2.0 instead of built-in libmpdclient +* require MPD 0.12 * allow multiple queued database updates * reactivate incremental playlist changes diff --git a/src/main.c b/src/main.c index fb5de59..6010482 100644 --- a/src/main.c +++ b/src/main.c @@ -197,12 +197,12 @@ timer_reconnect(G_GNUC_UNUSED gpointer data) #ifndef NCMPC_MINI /* quit if mpd is pre 0.11.0 - song id not supported by mpd */ - if (mpd_connection_cmp_server_version(mpd->connection, 0, 11, 0) < 0) { + if (mpd_connection_cmp_server_version(mpd->connection, 0, 12, 0) < 0) { const unsigned *version = mpd_connection_get_server_version(mpd->connection); screen_status_printf(_("Error: MPD version %d.%d.%d is to old (%s needed)"), version[0], version[1], version[2], - "0.11.0"); + "0.12.0"); mpdclient_disconnect(mpd); doupdate();