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.
This commit is contained in:
Max Kellermann 2014-02-07 22:30:01 +01:00
parent 25aa17ad89
commit f6939f71a7

View File

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