diff options
Diffstat (limited to 'server/thumb-server.c')
-rwxr-xr-x | server/thumb-server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/thumb-server.c b/server/thumb-server.c index 4bb521f..3541d44 100755 --- a/server/thumb-server.c +++ b/server/thumb-server.c @@ -32,7 +32,7 @@ #define LOG_TAG "MEDIA_THUMBNAIL_SERVER" -extern GMainLoop *g_thumb_server_mainloop; +static GMainLoop *g_thumb_server_mainloop; int main(void) { @@ -60,7 +60,7 @@ int main(void) source = g_io_create_watch(channel, G_IO_IN); /* Set callback to be called when socket is readable */ - g_source_set_callback(source, (GSourceFunc)_thumb_server_read_socket, NULL, NULL); + g_source_set_callback(source, (GSourceFunc)_thumb_server_read_socket, (gpointer)g_thumb_server_mainloop, NULL); g_source_attach(source, context); GSource *source_evas_init = NULL; |