Commit f6939f71 authored by Max Kellermann's avatar Max Kellermann

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.
parent 25aa17ad
...@@ -261,7 +261,7 @@ mpd_inotify_callback(int wd, unsigned mask, ...@@ -261,7 +261,7 @@ mpd_inotify_callback(int wd, unsigned mask,
(mask & IN_ISDIR) != 0) { (mask & IN_ISDIR) != 0) {
/* a sub directory was changed: register those in /* a sub directory was changed: register those in
inotify */ inotify */
const auto &root = mapper_get_music_directory_fs(); const auto &root = inotify_root->name;
const auto path_fs = uri_fs.IsNull() const auto path_fs = uri_fs.IsNull()
? root ? root
......
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