gst/gst.c: Make warning about late g_thread_init() calls a bit more explicit, so...
authorTim-Philipp Müller <tim@centricular.net>
Tue, 23 Jan 2007 13:50:42 +0000 (13:50 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 23 Jan 2007 13:50:42 +0000 (13:50 +0000)
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
gst/gst.c

index e1386aa..7270390 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-01-23  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * 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  <edward@fluendo.com>
 
        * plugins/elements/gstmultiqueue.c:
index a39dd02..c741b01 100644 (file)
--- 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);
   }