tests: g_thread_init() is deprecated in glib master
It's not needed any longer.
This commit is contained in:
parent
330d984288
commit
72fc3d1bd9
@ -442,8 +442,11 @@ souphttpsrc_suite (void)
|
|||||||
TCase *tc_chain, *tc_internet;
|
TCase *tc_chain, *tc_internet;
|
||||||
|
|
||||||
g_type_init ();
|
g_type_init ();
|
||||||
|
|
||||||
|
#if !GLIB_CHECK_VERSION (2, 31, 0)
|
||||||
if (!g_thread_supported ())
|
if (!g_thread_supported ())
|
||||||
g_thread_init (NULL);
|
g_thread_init (NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
s = suite_create ("souphttpsrc");
|
s = suite_create ("souphttpsrc");
|
||||||
tc_chain = tcase_create ("general");
|
tc_chain = tcase_create ("general");
|
||||||
|
@ -179,8 +179,10 @@ main (int argc, char **argv)
|
|||||||
GstPad *eq_sinkpad;
|
GstPad *eq_sinkpad;
|
||||||
gchar *uri;
|
gchar *uri;
|
||||||
|
|
||||||
|
#if !GLIB_CHECK_VERSION (2, 31, 0)
|
||||||
if (!g_thread_supported ())
|
if (!g_thread_supported ())
|
||||||
g_thread_init (NULL);
|
g_thread_init (NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* command line option parsing */
|
/* command line option parsing */
|
||||||
ctx = g_option_context_new ("FILENAME");
|
ctx = g_option_context_new ("FILENAME");
|
||||||
|
@ -329,8 +329,10 @@ main (int argc, char **argv)
|
|||||||
GOptionContext *ctx;
|
GOptionContext *ctx;
|
||||||
GError *opt_err = NULL;
|
GError *opt_err = NULL;
|
||||||
|
|
||||||
|
#if !GLIB_CHECK_VERSION (2, 31, 0)
|
||||||
if (!g_thread_supported ())
|
if (!g_thread_supported ())
|
||||||
g_thread_init (NULL);
|
g_thread_init (NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
gtk_init (&argc, &argv);
|
gtk_init (&argc, &argv);
|
||||||
|
|
||||||
|
@ -233,8 +233,10 @@ main (int argc, char **argv)
|
|||||||
GOptionContext *ctx;
|
GOptionContext *ctx;
|
||||||
GError *err = NULL;
|
GError *err = NULL;
|
||||||
|
|
||||||
|
#if !GLIB_CHECK_VERSION (2, 31, 0)
|
||||||
if (!g_thread_supported ())
|
if (!g_thread_supported ())
|
||||||
g_thread_init (NULL);
|
g_thread_init (NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
ctx = g_option_context_new ("");
|
ctx = g_option_context_new ("");
|
||||||
g_option_context_add_main_entries (ctx, options, NULL);
|
g_option_context_add_main_entries (ctx, options, NULL);
|
||||||
|
@ -193,8 +193,10 @@ main (int argc, char **argv)
|
|||||||
GstCaps *filter_caps = NULL;
|
GstCaps *filter_caps = NULL;
|
||||||
GList *caps_list, *l;
|
GList *caps_list, *l;
|
||||||
|
|
||||||
|
#if !GLIB_CHECK_VERSION (2, 31, 0)
|
||||||
if (!g_thread_supported ())
|
if (!g_thread_supported ())
|
||||||
g_thread_init (NULL);
|
g_thread_init (NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* command line option parsing */
|
/* command line option parsing */
|
||||||
ctx = g_option_context_new ("");
|
ctx = g_option_context_new ("");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user