update default error callback to new error signal

Original commit message from CVS:
update default error callback to new error signal
This commit is contained in:
Benjamin Otte 2003-09-15 01:36:53 +00:00
parent be1eaa4de3
commit 9afd27f29b
2 changed files with 5 additions and 3 deletions

View file

@ -207,10 +207,11 @@ gst_element_real_get_property (GObject *object, guint prop_id, GValue *value, GP
* using g_print. * using g_print.
*/ */
void 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); 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); g_free (name);
} }

View file

@ -228,7 +228,8 @@ void gst_element_class_install_std_props (GstElementClass *kl
#define gst_element_default_deep_notify gst_object_default_deep_notify #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); GType gst_element_get_type (void);