mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
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:
parent
e43ebd685d
commit
0378c40ed3
3 changed files with 0 additions and 21 deletions
|
@ -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 */
|
||||
|
|
|
@ -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 ());
|
||||
|
|
11
gst/gst.c
11
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,
|
||||
|
|
Loading…
Reference in a new issue