From f6939f71a7cbbcc54b9385fea8c78ad79fa51103 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 7 Feb 2014 22:30:01 +0100 Subject: InotifyUpdate: use the root name instead of mapper_get_music_directory_fs() The root WatchDirectory instance already contains the music directory, and we don't need to fetch it again. --- src/db/update/InotifyUpdate.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/db/update/InotifyUpdate.cxx') diff --git a/src/db/update/InotifyUpdate.cxx b/src/db/update/InotifyUpdate.cxx index 5736c6e5e..0ccd19896 100644 --- a/src/db/update/InotifyUpdate.cxx +++ b/src/db/update/InotifyUpdate.cxx @@ -261,7 +261,7 @@ mpd_inotify_callback(int wd, unsigned mask, (mask & IN_ISDIR) != 0) { /* a sub directory was changed: register those in inotify */ - const auto &root = mapper_get_music_directory_fs(); + const auto &root = inotify_root->name; const auto path_fs = uri_fs.IsNull() ? root -- cgit v1.2.3