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
This commit is contained in:
Guillaume Desmottes 2016-04-14 12:25:43 +03:00 committed by Tim-Philipp Müller
parent f2fd3bda2b
commit aa336008b3

View file

@ -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);