Commit 9a5d4f84 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

src/main.c: Call g_thread_init() before calling any other GLib function, such...

src/main.c: Call g_thread_init() before calling any other GLib function, such as g_option_context_new().

Original commit message from CVS:
* src/main.c: (main):
Call g_thread_init() before calling any other GLib function,
such as g_option_context_new().
parent f7cf8131
common @ 4221e9dc
Subproject commit b3fe2a25c1cd0f4b021795d0db7330aeb338da7c
Subproject commit 4221e9dcb05faa6f6f7ba19bba32fe90da4577dd
2008-03-28 Tim-Philipp Müller <tim at centricular dot net>
* src/main.c: (main):
Call g_thread_init() before calling any other GLib function,
such as g_option_context_new().
2006-07-04 Tim-Philipp Müller <tim at centricular dot net>
* autogen.sh:
......
......@@ -105,6 +105,11 @@ main (int argc, char *argv[])
GError *err = NULL;
gint i, num;
/* Before calling any GLib or GStreamer function, we must initialise
* the GLib threading system */
if (!g_thread_supported())
g_thread_init (NULL);
ctx = g_option_context_new ("[FILE1] [FILE2] ...");
g_option_context_add_group (ctx, gst_init_get_option_group ());
g_option_context_add_main_entries (ctx, entries, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment