mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
be1eaa4de3
commit
9afd27f29b
2 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue