mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
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:
parent
f2fd3bda2b
commit
aa336008b3
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue