From 9afd27f29b74ee8b28b19deb7578503abda6d02e Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 15 Sep 2003 01:36:53 +0000 Subject: [PATCH] update default error callback to new error signal Original commit message from CVS: update default error callback to new error signal --- gst/gstelement.c | 5 +++-- gst/gstelement.h | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gst/gstelement.c b/gst/gstelement.c index 1849ad5852..86c68cf9ab 100644 --- a/gst/gstelement.c +++ b/gst/gstelement.c @@ -207,10 +207,11 @@ gst_element_real_get_property (GObject *object, guint prop_id, GValue *value, GP * using g_print. */ void -gst_element_default_error (GObject *object, GstObject *orig, gchar *error) +gst_element_default_error (GObject *object, GstObject *orig, GError* error, gchar *detailed) { gchar *name = gst_object_get_path_string (orig); - g_print ("ERROR: %s: %s\n", name, error); + g_print ("ERROR: %s: %s\n", name, error->message); + g_print (" %s\n", detailed); g_free (name); } diff --git a/gst/gstelement.h b/gst/gstelement.h index b17d269176..ad7322c205 100644 --- a/gst/gstelement.h +++ b/gst/gstelement.h @@ -228,7 +228,8 @@ void gst_element_class_install_std_props (GstElementClass *kl #define gst_element_default_deep_notify gst_object_default_deep_notify -void gst_element_default_error (GObject *object, GstObject *orig, gchar *error); +void gst_element_default_error (GObject *object, GstObject *orig, + GError *error, gchar *detailed); GType gst_element_get_type (void);