diff options
author | Max Kellermann <max@duempel.org> | 2014-02-07 22:30:01 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-07 22:30:01 +0100 |
commit | f6939f71a7cbbcc54b9385fea8c78ad79fa51103 (patch) | |
tree | 42011044172c8aa2b37be2f9dc89311b3c1577a7 /src/db | |
parent | 25aa17ad89f096dc36165bacb261da8f3ca266bf (diff) | |
download | mpd-f6939f71a7cbbcc54b9385fea8c78ad79fa51103.tar.gz mpd-f6939f71a7cbbcc54b9385fea8c78ad79fa51103.tar.xz mpd-f6939f71a7cbbcc54b9385fea8c78ad79fa51103.zip |
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.
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/update/InotifyUpdate.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 |