daemon: get rid of deprecated g_type_init warning.
authorKrisztian Litkey <kli@iki.fi>
Fri, 11 Oct 2013 15:37:35 +0000 (18:37 +0300)
committerKrisztian Litkey <kli@iki.fi>
Fri, 10 Jan 2014 15:07:35 +0000 (17:07 +0200)
src/daemon/daemon.c

index 80ec4e3..e9d2133 100644 (file)
@@ -108,7 +108,9 @@ static void create_mainloop(srs_context_t *srs)
     if (srs_get_bool_config(srs->settings, "gmainloop", FALSE)) {
         mrp_log_info("Configured to run with glib mainloop.");
 
+#ifndef GLIB_VERSION_2_36
         g_type_init();
+#endif
         srs->gl = g_main_loop_new(NULL, FALSE);
 
         if (srs->gl == NULL) {