From: Wim Taymans Date: Mon, 24 Mar 2008 10:29:05 +0000 (+0000) Subject: gst/gstvalue.c: Transform a GstObject to a more meaningfull string that includes... X-Git-Tag: RELEASE-0_10_20~187 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=28188a3e6e8102d86b70d2634b57cce42d96f261;p=platform%2Fupstream%2Fgstreamer.git gst/gstvalue.c: Transform a GstObject to a more meaningfull string that includes the object type in addition to its n... Original commit message from CVS: * gst/gstvalue.c: (gst_value_transform_object_string): Transform a GstObject to a more meaningfull string that includes the object type in addition to its name. --- diff --git a/ChangeLog b/ChangeLog index 37e1a50..3939bfe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-03-24 Wim Taymans + + * gst/gstvalue.c: (gst_value_transform_object_string): + Transform a GstObject to a more meaningfull string that includes the + object type in addition to its name. + 2008-03-23 Stefan Kost * ChangeLog: diff --git a/gst/gstvalue.c b/gst/gstvalue.c index 3a694ca..9da84e5 100644 --- a/gst/gstvalue.c +++ b/gst/gstvalue.c @@ -3888,9 +3888,15 @@ gst_value_transform_object_string (const GValue * src_value, gchar *str; obj = g_value_get_object (src_value); - str = obj ? GST_OBJECT_NAME (obj) : "NULL"; + if (obj) { + str = + g_strdup_printf ("(%s) %s", G_OBJECT_TYPE_NAME (obj), + GST_OBJECT_NAME (obj)); + } else { + str = g_strdup ("NULL"); + } - dest_value->data[0].v_pointer = g_strdup (str); + dest_value->data[0].v_pointer = str; } static GTypeInfo _info = {