From: Tim-Philipp Müller Date: Sun, 25 Nov 2012 23:26:47 +0000 (+0000) Subject: docs: remove all mention of g_thread_init() X-Git-Tag: 1.1.1~368 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0378c40ed379c65ae123f5c352a3a0846342fbfd;p=platform%2Fupstream%2Fgstreamer.git docs: remove all mention of g_thread_init() It's been deprecated since GLib 2.32 and isn't needed any longer. --- diff --git a/docs/manual/appendix-integration.xml b/docs/manual/appendix-integration.xml index b16c427..9be6602 100644 --- a/docs/manual/appendix-integration.xml +++ b/docs/manual/appendix-integration.xml @@ -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 */ diff --git a/docs/manual/basics-init.xml b/docs/manual/basics-init.xml index d31ae8a..f543caa 100644 --- a/docs/manual/basics-init.xml +++ b/docs/manual/basics-init.xml @@ -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 ()); diff --git a/gst/gst.c b/gst/gst.c index 4e36d9c..9274726 100644 --- 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) * Running GStreamer Applications * 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. - * * * This function will terminate your program if it was unable to initialize * GStreamer for some reason. If you want your program to fall back,