tools/: Call g_thread_init() really really early, before any other GLib function (see #342564 and recent discussion o...

Original commit message from CVS:
* 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).
This commit is contained in:
Tim-Philipp Müller 2007-01-05 15:55:16 +00:00
parent 47d2b0a976
commit b3eafe67a8
6 changed files with 22 additions and 1 deletions

View file

@ -1,3 +1,12 @@
2007-01-05 Tim-Philipp Müller <tim at centricular dot net>
* 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 <tim at centricular dot net>
Patch by: Vincent Torri <vtorri at univ-evry dot fr>

2
common

@ -1 +1 @@
Subproject commit ee0bb43e2b66781d04078e2210404da48f6c68f0
Subproject commit 64f924f6f2ff6275b06facb4c2adbc7c05f70641

View file

@ -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 ());

View file

@ -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");

View file

@ -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 ());

View file

@ -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 ());