Code

require MPD 0.12
authorMax Kellermann <max@duempel.org>
Tue, 29 Sep 2009 20:14:35 +0000 (22:14 +0200)
committerMax Kellermann <max@duempel.org>
Tue, 29 Sep 2009 20:14:35 +0000 (22:14 +0200)
We will take advantage of the "addid" command, which was introduced in
MPD 0.12.  Hey, who's still running 0.11 these days?

NEWS
src/main.c

diff --git a/NEWS b/NEWS
index 5ca9a40fc4824051b587c88bea139efc568af069..3c4d0fc5c07b29ea2fe7b0b6a9101e40b98b34d1 100644 (file)
--- 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
 
index fb5de59652f7eaed0ec40888ebbaffd37f0d7897..6010482a45a45dc58ac28a703ceac5036ef4a5a5 100644 (file)
@@ -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();