Commit e50969e3 authored by Max Kellermann's avatar Max Kellermann

db/proxy: fix for libmpdclient < 2.9

parent a6d9998e
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment