utils: const-ify arguments to gst_object_default_error()

This commit is contained in:
Tim-Philipp Müller 2010-12-07 19:35:24 +00:00
parent 711f2d8abb
commit 7b0e3356eb
2 changed files with 6 additions and 3 deletions

View file

@ -2438,10 +2438,12 @@ gst_pad_get_parent_element (GstPad * pad)
* The default handler will simply print the error string using g_print.
*/
void
gst_object_default_error (GstObject * source, GError * error, gchar * debug)
gst_object_default_error (GstObject * source, const GError * error,
const gchar * debug)
{
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);
if (debug)
g_print (_("Additional debug info:\n%s\n"), debug);

View file

@ -993,7 +993,8 @@ GST_WRITE_DOUBLE_BE(guint8 *data, gdouble num)
#define GST_ROUND_DOWN_64(num) ((num)&(~63))
void gst_object_default_error (GstObject * source,
GError * error, gchar * debug);
const GError * error,
const gchar * debug);
/* element functions */
void gst_element_create_all_pads (GstElement *element);