aboutsummaryrefslogtreecommitdiff
path: root/src/InotifyUpdate.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-10 19:08:42 +0100
committerMax Kellermann <max@duempel.org>2013-01-14 11:12:28 +0100
commitd3a479b7fa1d1e52f9d3950139643fe7e3ff5a57 (patch)
tree4996c42d621876770a6d80bc8d031be9ee97676a /src/InotifyUpdate.cxx
parent92fb0e829a9b61d1b1db4bdbe6096c1772b7c819 (diff)
event/TimeoutMonitor: wrapper for g_timeout_source_new()
Diffstat (limited to 'src/InotifyUpdate.cxx')
-rw-r--r--src/InotifyUpdate.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/InotifyUpdate.cxx b/src/InotifyUpdate.cxx
index 9fe657a1..0fe22385 100644
--- a/src/InotifyUpdate.cxx
+++ b/src/InotifyUpdate.cxx
@@ -22,6 +22,7 @@
#include "InotifySource.hxx"
#include "InotifyQueue.hxx"
#include "Mapper.hxx"
+#include "Main.hxx"
extern "C" {
#include "path.h"
@@ -342,7 +343,7 @@ mpd_inotify_init(unsigned max_depth)
recursive_watch_subdirectories(&inotify_root, path, 0);
- inotify_queue = new InotifyQueue();
+ inotify_queue = new InotifyQueue(*main_loop);
g_debug("watching music directory");
}