diff --git a/ChangeLog b/ChangeLog index 66591686ce..63061c039c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2007-01-05 Tim-Philipp Müller + + * tools/gst-inspect.c: (main): + * tools/gst-launch.c: (main): + * tools/gst-typefind.c: (main): + * tools/gst-xmlinspect.c: (main): + Call g_thread_init() really really early, before any other GLib + function (see #342564 and recent discussion on gtk-devel-list). + 2007-01-05 Tim-Philipp Müller Patch by: Vincent Torri diff --git a/common b/common index ee0bb43e2b..64f924f6f2 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit ee0bb43e2b66781d04078e2210404da48f6c68f0 +Subproject commit 64f924f6f2ff6275b06facb4c2adbc7c05f70641 diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index 6c5332cabd..4b1de631f8 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -1123,6 +1123,9 @@ main (int argc, char *argv[]) textdomain (GETTEXT_PACKAGE); #endif + if (!g_thread_supported ()) + g_thread_init (NULL); + ctx = g_option_context_new ("[ELEMENT-NAME | PLUGIN-NAME]"); g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE); g_option_context_add_group (ctx, gst_init_get_option_group ()); diff --git a/tools/gst-launch.c b/tools/gst-launch.c index 38e7203779..d4a7cbf2f1 100644 --- a/tools/gst-launch.c +++ b/tools/gst-launch.c @@ -583,6 +583,9 @@ main (int argc, char *argv[]) textdomain (GETTEXT_PACKAGE); #endif + if (!g_thread_supported ()) + g_thread_init (NULL); + gst_alloc_trace_set_flags_all (GST_ALLOC_TRACE_LIVE); ctx = g_option_context_new ("PIPELINE-DESCRIPTION"); diff --git a/tools/gst-typefind.c b/tools/gst-typefind.c index b8bd67c165..4f0e0a9c90 100644 --- a/tools/gst-typefind.c +++ b/tools/gst-typefind.c @@ -153,6 +153,9 @@ main (int argc, char *argv[]) textdomain (GETTEXT_PACKAGE); #endif + if (!g_thread_supported ()) + g_thread_init (NULL); + ctx = g_option_context_new ("FILES"); g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE); g_option_context_add_group (ctx, gst_init_get_option_group ()); diff --git a/tools/gst-xmlinspect.c b/tools/gst-xmlinspect.c index d6cf475e3b..8d41c4109b 100644 --- a/tools/gst-xmlinspect.c +++ b/tools/gst-xmlinspect.c @@ -775,6 +775,9 @@ main (int argc, char *argv[]) setlocale (LC_ALL, ""); + if (!g_thread_supported ()) + g_thread_init (NULL); + ctx = g_option_context_new ("[ELEMENT-NAME | PLUGIN-NAME]"); g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE); g_option_context_add_group (ctx, gst_init_get_option_group ());