diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2016-04-14 12:25:43 +0300 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-06-02 22:53:28 +0100 |
commit | aa336008b378ebe24d56896f96240fc3bd96d5d4 (patch) | |
tree | c3632c721e2db8c0aba1a0b85dad339b2900541b /gst/gststructure.c | |
parent | f2fd3bda2bf5d2d77d2acc1584806ff615533591 (diff) | |
download | gstreamer-aa336008b378ebe24d56896f96240fc3bd96d5d4.tar.gz |
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
Diffstat (limited to 'gst/gststructure.c')
-rw-r--r-- | gst/gststructure.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/gststructure.c b/gst/gststructure.c index 3c705f317d..581b00e09e 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); |