From d3a479b7fa1d1e52f9d3950139643fe7e3ff5a57 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 10 Jan 2013 19:08:42 +0100 Subject: event/TimeoutMonitor: wrapper for g_timeout_source_new() --- src/InotifyUpdate.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/InotifyUpdate.cxx') 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"); } -- cgit v1.2.3