aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-22 23:09:36 +0100
committerMax Kellermann <max@duempel.org>2014-01-22 23:09:36 +0100
commite50969e31ccfafe48e17f0fc094e4b48a4e0d886 (patch)
treed82dc7d0e69857dee5d004bec0a9641832ebf3ae /src
parenta6d9998e1d24ac9d160f71c0807f0ebb82ce2666 (diff)
downloadmpd-e50969e31ccfafe48e17f0fc094e4b48a4e0d886.tar.gz
mpd-e50969e31ccfafe48e17f0fc094e4b48a4e0d886.tar.xz
mpd-e50969e31ccfafe48e17f0fc094e4b48a4e0d886.zip
db/proxy: fix for libmpdclient < 2.9
Diffstat (limited to 'src')
-rw-r--r--src/db/ProxyDatabasePlugin.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db/ProxyDatabasePlugin.cxx b/src/db/ProxyDatabasePlugin.cxx
index 90b381027..b5ed09eb3 100644
--- a/src/db/ProxyDatabasePlugin.cxx
+++ b/src/db/ProxyDatabasePlugin.cxx
@@ -525,7 +525,11 @@ Visit(struct mpd_connection *connection,
VisitPlaylist visit_playlist, Error &error)
{
const char *path = mpd_directory_get_path(directory);
+#if LIBMPDCLIENT_CHECK_VERSION(2,9,0)
time_t mtime = mpd_directory_get_last_modified(directory);
+#else
+ time_t mtime = 0;
+#endif
if (visit_directory &&
!visit_directory(LightDirectory(path, mtime), error))