From 9e0b1e942cca934311297238beb8b35cf8389a7a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 23 Jan 2007 13:50:42 +0000 Subject: [PATCH] gst/gst.c: Make warning about late g_thread_init() calls a bit more explicit, so that it's more obvious to applicatio... Original commit message from CVS: * gst/gst.c: (gst_init_get_option_group): Make warning about late g_thread_init() calls a bit more explicit, so that it's more obvious to application developers what they need to do if a user files a bug against their application. --- ChangeLog | 7 +++++++ gst/gst.c | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e1386aa..7270390 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-01-23 Tim-Philipp Müller + + * gst/gst.c: (gst_init_get_option_group): + Make warning about late g_thread_init() calls a bit more explicit, + so that it's more obvious to application developers what they need + to do if a user files a bug against their application. + 2007-01-22 Edward Hervey * plugins/elements/gstmultiqueue.c: diff --git a/gst/gst.c b/gst/gst.c index a39dd02..c741b01 100644 --- a/gst/gst.c +++ b/gst/gst.c @@ -352,8 +352,10 @@ gst_init_get_option_group (void) g_warning ("The GStreamer function gst_init_get_option_group() was\n" "\tcalled, but the GLib threading system has not been initialised\n" "\tyet, something that must happen before any other GLib function\n" - "\tis called. The application needs to be fixed accordingly, please\n" - "\tfile a bug against this application."); + "\tis called. The application needs to be fixed so that it calls\n" + "\t if (!g_thread_supported ()) g_thread_init(NULL);\n" + "\tas very first thing in its main() function. Please file a bug\n" + "\tagainst this application."); g_thread_init (NULL); } -- 2.7.4