utils: use g_printerr() as stated in the FIXME
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 2 Jun 2011 13:38:04 +0000 (15:38 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 2 Jun 2011 13:38:04 +0000 (15:38 +0200)
gst/gstutils.c

index 29df1d5..31ac33d 100644 (file)
@@ -2433,7 +2433,8 @@ gst_pad_get_parent_element (GstPad * pad)
  * @error: (in): the GError.
  * @debug: (in) (allow-none): an additional debug information string, or NULL
  *
- * A default error function.
+ * A default error function that uses g_printerr() to display the error message
+ * and the optional debug sting..
  *
  * The default handler will simply print the error string using g_print.
  */
@@ -2443,10 +2444,9 @@ gst_object_default_error (GstObject * source, const GError * error,
 {
   gchar *name = gst_object_get_path_string (source);
 
-  /* FIXME 0.11: should change this to g_printerr() */
-  g_print (_("ERROR: from element %s: %s\n"), name, error->message);
+  g_printerr (_("ERROR: from element %s: %s\n"), name, error->message);
   if (debug)
-    g_print (_("Additional debug info:\n%s\n"), debug);
+    g_printerr (_("Additional debug info:\n%s\n"), debug);
 
   g_free (name);
 }