tools: Run g_thread_init() unconditionally

Since we define G_THREADS_MANDATORY, g_thread_supported() evaluates to
TRUE unconditionally, so calling g_thread_init() never happened.
This commit is contained in:
Benjamin Otte 2010-01-20 14:13:11 +01:00
parent f3d579362c
commit 91b948589b
4 changed files with 4 additions and 8 deletions

View file

@ -1489,8 +1489,7 @@ main (int argc, char *argv[])
textdomain (GETTEXT_PACKAGE); textdomain (GETTEXT_PACKAGE);
#endif #endif
if (!g_thread_supported ()) g_thread_init (NULL);
g_thread_init (NULL);
gst_tools_print_version ("gst-inspect"); gst_tools_print_version ("gst-inspect");

View file

@ -707,8 +707,7 @@ main (int argc, char *argv[])
textdomain (GETTEXT_PACKAGE); textdomain (GETTEXT_PACKAGE);
#endif #endif
if (!g_thread_supported ()) g_thread_init (NULL);
g_thread_init (NULL);
gst_tools_print_version ("gst-launch"); gst_tools_print_version ("gst-launch");

View file

@ -153,8 +153,7 @@ main (int argc, char *argv[])
textdomain (GETTEXT_PACKAGE); textdomain (GETTEXT_PACKAGE);
#endif #endif
if (!g_thread_supported ()) g_thread_init (NULL);
g_thread_init (NULL);
gst_tools_print_version ("gst-typefind"); gst_tools_print_version ("gst-typefind");

View file

@ -637,8 +637,7 @@ main (int argc, char *argv[])
setlocale (LC_ALL, ""); setlocale (LC_ALL, "");
if (!g_thread_supported ()) g_thread_init (NULL);
g_thread_init (NULL);
gst_tools_print_version ("gst-xmlinspect"); gst_tools_print_version ("gst-xmlinspect");