utils: use g_printerr() as stated in the FIXME

This commit is contained in:
Wim Taymans 2011-06-02 15:38:04 +02:00
parent 0de2f64e12
commit 589499c07e

View 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);
}