docs: remove all mention of g_thread_init()
authorTim-Philipp Müller <tim@centricular.net>
Sun, 25 Nov 2012 23:26:47 +0000 (23:26 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Sun, 25 Nov 2012 23:26:47 +0000 (23:26 +0000)
It's been deprecated since GLib 2.32 and isn't needed any
longer.

docs/manual/appendix-integration.xml
docs/manual/basics-init.xml
gst/gst.c

index b16c427..9be6602 100644 (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 */
index d31ae8a..f543caa 100644 (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 ());
index 4e36d9c..9274726 100644 (file)
--- a/gst/gst.c
+++ b/gst/gst.c
@@ -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,