tests: g_thread_init() is deprecated in glib master
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 12 Dec 2011 02:41:37 +0000 (02:41 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 12 Dec 2011 09:46:27 +0000 (09:46 +0000)
It's not needed any longer.

tests/check/elements/souphttpsrc.c
tests/icles/equalizer-test.c
tests/icles/gdkpixbufsink-test.c
tests/icles/test-oss4.c
tests/icles/videocrop-test.c

index ba15745..7a1b677 100644 (file)
@@ -442,8 +442,11 @@ souphttpsrc_suite (void)
   TCase *tc_chain, *tc_internet;
 
   g_type_init ();
+
+#if !GLIB_CHECK_VERSION (2, 31, 0)
   if (!g_thread_supported ())
     g_thread_init (NULL);
+#endif
 
   s = suite_create ("souphttpsrc");
   tc_chain = tcase_create ("general");
index e8126fa..fc6d527 100644 (file)
@@ -179,8 +179,10 @@ main (int argc, char **argv)
   GstPad *eq_sinkpad;
   gchar *uri;
 
+#if !GLIB_CHECK_VERSION (2, 31, 0)
   if (!g_thread_supported ())
     g_thread_init (NULL);
+#endif
 
   /* command line option parsing */
   ctx = g_option_context_new ("FILENAME");
index b09fe09..425e470 100644 (file)
@@ -329,8 +329,10 @@ main (int argc, char **argv)
   GOptionContext *ctx;
   GError *opt_err = NULL;
 
+#if !GLIB_CHECK_VERSION (2, 31, 0)
   if (!g_thread_supported ())
     g_thread_init (NULL);
+#endif
 
   gtk_init (&argc, &argv);
 
index f15875d..233e891 100644 (file)
@@ -233,8 +233,10 @@ main (int argc, char **argv)
   GOptionContext *ctx;
   GError *err = NULL;
 
+#if !GLIB_CHECK_VERSION (2, 31, 0)
   if (!g_thread_supported ())
     g_thread_init (NULL);
+#endif
 
   ctx = g_option_context_new ("");
   g_option_context_add_main_entries (ctx, options, NULL);
index a4874e1..cc8f8d0 100644 (file)
@@ -193,8 +193,10 @@ main (int argc, char **argv)
   GstCaps *filter_caps = NULL;
   GList *caps_list, *l;
 
+#if !GLIB_CHECK_VERSION (2, 31, 0)
   if (!g_thread_supported ())
     g_thread_init (NULL);
+#endif
 
   /* command line option parsing */
   ctx = g_option_context_new ("");