mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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:
parent
de5d9793d7
commit
26d3fa8946
3 changed files with 17 additions and 0 deletions
|
@ -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),
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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 ());
|
||||
|
|
Loading…
Reference in a new issue