From e83f805b8fa34db8ac0b885d3fb78c0e6437c908 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 10 Jan 2013 19:13:00 +0100 Subject: Main, IOThread: move GMainLoop setup code to class EventLoop --- src/input/CurlInputPlugin.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/input/CurlInputPlugin.cxx') diff --git a/src/input/CurlInputPlugin.cxx b/src/input/CurlInputPlugin.cxx index be919bb0e..27662d871 100644 --- a/src/input/CurlInputPlugin.cxx +++ b/src/input/CurlInputPlugin.cxx @@ -28,6 +28,7 @@ extern "C" { #include "input_internal.h" } +#include "event/Loop.hxx" #include "IOThread.hxx" #include "glib_compat.h" @@ -716,7 +717,8 @@ input_curl_init(const struct config_param *param, } curl.source = g_source_new(&curl_source_funcs, sizeof(*curl.source)); - curl.source_id = g_source_attach(curl.source, io_thread_context()); + curl.source_id = g_source_attach(curl.source, + io_thread_get().GetContext()); return true; } -- cgit v1.2.3