docs: remove all mention of g_thread_init()

It's been deprecated since GLib 2.32 and isn't needed any
longer.
This commit is contained in:
Tim-Philipp Müller 2012-11-25 23:26:47 +00:00
parent e43ebd685d
commit 0378c40ed3
3 changed files with 0 additions and 21 deletions

View file

@ -111,11 +111,6 @@ main (gint argc, gchar **argv)
GOptionGroup *gstreamer_group, *gtk_group;
GError *err = NULL;
/* we must initialise the threading system before using any
* other GLib funtion, such as g_option_context_new() */
if (!g_thread_supported ())
g_thread_init (NULL);
context = g_option_context_new ("gtk-demo-app");
/* get command line options from GStreamer and add them to the group */

View file

@ -97,11 +97,6 @@ main (int argc,
{ NULL }
};
/* we must initialise the threading system before using any
* other GLib funtion, such as g_option_context_new() */
if (!g_thread_supported ())
g_thread_init (NULL);
ctx = g_option_context_new ("- Your application");
g_option_context_add_main_entries (ctx, entries, NULL);
g_option_context_add_group (ctx, gst_init_get_option_group ());

View file

@ -71,9 +71,6 @@
* N_("Output tags (also known as metadata)"), NULL},
* {NULL}
* };
* // must initialise the threading system before using any other GLib funtion
* if (!g_thread_supported ())
* g_thread_init (NULL);
* ctx = g_option_context_new ("[ADDITIONAL ARGUMENTS]");
* g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE);
* g_option_context_add_group (ctx, gst_init_get_option_group ());
@ -312,10 +309,6 @@ gst_init_get_option_group (void)
* for some reason. If you want your program to fail fatally,
* use gst_init() instead.
*
* This function should be called before calling any other GLib functions. If
* this is not an option, your program must initialise the GLib thread system
* using g_thread_init() before any other GLib functions are called.
*
* Returns: %TRUE if GStreamer could be initialized.
*/
gboolean
@ -370,10 +363,6 @@ gst_init_check (int *argc, char **argv[], GError ** err)
* <link linkend="gst-running">Running GStreamer Applications</link>
* for how to disable automatic registry updates.
*
* This function should be called before calling any other GLib functions. If
* this is not an option, your program must initialise the GLib thread system
* using g_thread_init() before any other GLib functions are called.
*
* <note><para>
* This function will terminate your program if it was unable to initialize
* GStreamer for some reason. If you want your program to fall back,