db/proxy: fix for libmpdclient < 2.9

This commit is contained in:
Max Kellermann 2014-01-22 23:09:36 +01:00
parent a6d9998e1d
commit e50969e31c

View File

@ -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))