mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-23 09:04:15 +00:00
utils: use g_printerr() as stated in the FIXME
This commit is contained in:
parent
0de2f64e12
commit
589499c07e
1 changed files with 4 additions and 4 deletions
|
@ -2433,7 +2433,8 @@ gst_pad_get_parent_element (GstPad * pad)
|
||||||
* @error: (in): the GError.
|
* @error: (in): the GError.
|
||||||
* @debug: (in) (allow-none): an additional debug information string, or NULL
|
* @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.
|
* 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);
|
gchar *name = gst_object_get_path_string (source);
|
||||||
|
|
||||||
/* FIXME 0.11: should change this to g_printerr() */
|
g_printerr (_("ERROR: from element %s: %s\n"), name, error->message);
|
||||||
g_print (_("ERROR: from element %s: %s\n"), name, error->message);
|
|
||||||
if (debug)
|
if (debug)
|
||||||
g_print (_("Additional debug info:\n%s\n"), debug);
|
g_printerr (_("Additional debug info:\n%s\n"), debug);
|
||||||
|
|
||||||
g_free (name);
|
g_free (name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue