docs/manual/: Call g_thread_init() before g_option_context_new() to avoid warnings. Spotted by Ritesh Khadgaray. Fixe...

Original commit message from CVS:
* docs/manual/appendix-integration.xml:
* docs/manual/basics-init.xml:
Call g_thread_init() before g_option_context_new() to
avoid warnings. Spotted by Ritesh Khadgaray. Fixes #484225.
This commit is contained in:
Tim-Philipp Müller 2007-10-08 17:26:09 +00:00
parent de5d9793d7
commit 26d3fa8946
3 changed files with 17 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2007-10-08 Tim-Philipp Müller <tim at centricular dot net>
* docs/manual/appendix-integration.xml:
* docs/manual/basics-init.xml:
Call g_thread_init() before g_option_context_new() to
avoid warnings. Spotted by Ritesh Khadgaray. Fixes #484225.
2007-10-08 Wim Taymans <wim.taymans@gmail.com>
* libs/gst/base/gstbasesink.c: (gst_base_sink_preroll_queue_flush),

View file

@ -105,6 +105,11 @@ main (gint argc, gchar **argv)
GOptionGroup *gstreamer_group;
GnomeProgram *program;
/* 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 ("gnome-demo-app");
/* get command line options from GStreamer and add them to the group */

View file

@ -96,6 +96,11 @@ 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 ());