aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/ProxyDatabasePlugin.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/db/ProxyDatabasePlugin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/db/ProxyDatabasePlugin.cxx b/src/db/ProxyDatabasePlugin.cxx
index 1b5c3e374..90b381027 100644
--- a/src/db/ProxyDatabasePlugin.cxx
+++ b/src/db/ProxyDatabasePlugin.cxx
@@ -525,9 +525,10 @@ Visit(struct mpd_connection *connection,
VisitPlaylist visit_playlist, Error &error)
{
const char *path = mpd_directory_get_path(directory);
+ time_t mtime = mpd_directory_get_last_modified(directory);
if (visit_directory &&
- !visit_directory(LightDirectory(path, 0), error))
+ !visit_directory(LightDirectory(path, mtime), error))
return false;
if (recursive &&