From: Guillaume Desmottes Date: Thu, 14 Apr 2016 09:25:43 +0000 (+0300) Subject: tracerrecord: allow G_TYPE_POINTER for field types X-Git-Tag: 1.10.4~231 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa336008b378ebe24d56896f96240fc3bd96d5d4;p=platform%2Fupstream%2Fgstreamer.git tracerrecord: allow G_TYPE_POINTER for field types Tracers may want to display the address of an object. https://bugzilla.gnome.org/show_bug.cgi?id=765052 --- diff --git a/gst/gststructure.c b/gst/gststructure.c index 3c705f3..581b00e 100644 --- a/gst/gststructure.c +++ b/gst/gststructure.c @@ -1978,6 +1978,8 @@ priv__gst_structure_append_template_to_gstring (GQuark field_id, } else if (g_type_is_a (type, G_TYPE_ENUM) || g_type_is_a (type, G_TYPE_FLAGS)) { g_string_append (s, "%i"); + } else if (type == G_TYPE_POINTER) { + g_string_append_len (s, "%p", 2); } else { GST_WARNING ("unhandled type: %s", g_type_name (type)); g_string_append (s, "%" GST_WRAPPED_PTR_FORMAT);