From 7da98a22787c1f43d83c1099161166d83f6a008f Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Tue, 19 Sep 2017 23:58:26 +0200 Subject: [PATCH] gst-inspect: Print GstValueArray properties nicely https://bugzilla.gnome.org/show_bug.cgi?id=787924 --- tools/gst-inspect.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index c885aba..6640b62 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -519,6 +519,15 @@ print_element_properties_info (GstElement * element) pfraction->max_num, pfraction->max_den, gst_value_get_fraction_numerator (&value), gst_value_get_fraction_denominator (&value)); + } else if (param->value_type == GST_TYPE_ARRAY) { + GstParamSpecArray *parray = GST_PARAM_SPEC_ARRAY_LIST (param); + + if (parray->element_spec) { + n_print ("%-23.23s GstValueArray of GValues of type \"%s\"", "", + g_type_name (parray->element_spec->value_type)); + } else { + n_print ("%-23.23s GstValueArray of GValues", ""); + } } else { n_print ("%-23.23s Unknown type %ld \"%s\"", "", (glong) param->value_type, g_type_name (param->value_type)); -- 2.7.4