From 91b948589b18d6755225f109a9f9eb698d651009 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 20 Jan 2010 14:13:11 +0100 Subject: [PATCH] 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. --- tools/gst-inspect.c | 3 +-- tools/gst-launch.c | 3 +-- tools/gst-typefind.c | 3 +-- tools/gst-xmlinspect.c | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index eb486d2605..743e621dde 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -1489,8 +1489,7 @@ main (int argc, char *argv[]) textdomain (GETTEXT_PACKAGE); #endif - if (!g_thread_supported ()) - g_thread_init (NULL); + g_thread_init (NULL); gst_tools_print_version ("gst-inspect"); diff --git a/tools/gst-launch.c b/tools/gst-launch.c index 034d3379c6..38acb754df 100644 --- a/tools/gst-launch.c +++ b/tools/gst-launch.c @@ -707,8 +707,7 @@ main (int argc, char *argv[]) textdomain (GETTEXT_PACKAGE); #endif - if (!g_thread_supported ()) - g_thread_init (NULL); + g_thread_init (NULL); gst_tools_print_version ("gst-launch"); diff --git a/tools/gst-typefind.c b/tools/gst-typefind.c index 1f521fd65f..d51f282496 100644 --- a/tools/gst-typefind.c +++ b/tools/gst-typefind.c @@ -153,8 +153,7 @@ main (int argc, char *argv[]) textdomain (GETTEXT_PACKAGE); #endif - if (!g_thread_supported ()) - g_thread_init (NULL); + g_thread_init (NULL); gst_tools_print_version ("gst-typefind"); diff --git a/tools/gst-xmlinspect.c b/tools/gst-xmlinspect.c index 36b1913328..6a8b6fdce8 100644 --- a/tools/gst-xmlinspect.c +++ b/tools/gst-xmlinspect.c @@ -637,8 +637,7 @@ main (int argc, char *argv[]) setlocale (LC_ALL, ""); - if (!g_thread_supported ()) - g_thread_init (NULL); + g_thread_init (NULL); gst_tools_print_version ("gst-xmlinspect");