aboutsummaryrefslogtreecommitdiffstats
path: root/src/Main.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-29 18:36:32 +0100
committerMax Kellermann <max@duempel.org>2014-01-29 18:36:32 +0100
commit4b044bd8e1c180ced319a83551afe85bcba1db2f (patch)
treebd5a285a614a383051f1e8d2e3a46026bdf3bc92 /src/Main.cxx
parentaeaf64b46757e64bf32e945d52df2c4d447e5aa4 (diff)
downloadmpd-4b044bd8e1c180ced319a83551afe85bcba1db2f.tar.gz
mpd-4b044bd8e1c180ced319a83551afe85bcba1db2f.tar.xz
mpd-4b044bd8e1c180ced319a83551afe85bcba1db2f.zip
InotifyUpdate: pass EventLoop to mpd_inotify_init()
Diffstat (limited to '')
-rw-r--r--src/Main.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index 86ac7fc7a..f8f7a6545 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -504,7 +504,8 @@ int mpd_main(int argc, char *argv[])
if (config_get_bool(CONF_AUTO_UPDATE, false)) {
#ifdef ENABLE_INOTIFY
if (mapper_has_music_directory())
- mpd_inotify_init(config_get_unsigned(CONF_AUTO_UPDATE_DEPTH,
+ mpd_inotify_init(*main_loop,
+ config_get_unsigned(CONF_AUTO_UPDATE_DEPTH,
G_MAXUINT));
#else
FormatWarning(main_domain,