From df7bfb6a101e8b0e488ceb850a417073d7414ba0 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 12 Apr 2014 07:13:02 +0200 Subject: [PATCH] inspect: print structure values of properties --- tools/gst-inspect.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index f718736625..543bd1ac46 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -483,6 +483,12 @@ print_element_properties_info (GstElement * element) } else if (G_IS_PARAM_SPEC_BOXED (param)) { n_print ("%-23.23s Boxed pointer of type \"%s\"", "", g_type_name (param->value_type)); + if (param->value_type == GST_TYPE_STRUCTURE) { + const GstStructure *s = gst_value_get_structure (&value); + if (s) + gst_structure_foreach (s, print_field, + (gpointer) " "); + } } else if (G_IS_PARAM_SPEC_POINTER (param)) { if (param->value_type != G_TYPE_POINTER) { n_print ("%-23.23s Pointer of type \"%s\".", "",