From 3d2df075e34ded31ae79c8d0638fdeceea4fac2d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 28 May 2008 10:44:15 +0000 Subject: [PATCH] tools/gst-inspect.c: If possible print the element type of GValueArray properties. Original commit message from CVS: * tools/gst-inspect.c: (print_element_properties_info): If possible print the element type of GValueArray properties. --- ChangeLog | 5 +++++ tools/gst-inspect.c | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bff1d07..0f1cfdc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-05-28 Sebastian Dröge + * tools/gst-inspect.c: (print_element_properties_info): + If possible print the element type of GValueArray properties. + +2008-05-28 Sebastian Dröge + * gst/gstiterator.c: Remove an unused field from the private GstListIterator struct. diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index a194624..f29eff3 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -544,7 +544,14 @@ print_element_properties_info (GstElement * element) n_print ("%-23.23s Pointer.", ""); } } else if (param->value_type == G_TYPE_VALUE_ARRAY) { - n_print ("%-23.23s Array of GValues", ""); + GParamSpecValueArray *pvarray = G_PARAM_SPEC_VALUE_ARRAY (param); + + if (pvarray->element_spec) { + n_print ("%-23.23s Array of GValues of type \"%s\"", "", + g_type_name (pvarray->element_spec->value_type)); + } else { + n_print ("%-23.23s Array of GValues", ""); + } } else if (GST_IS_PARAM_SPEC_FRACTION (param)) { GstParamSpecFraction *pfraction = GST_PARAM_SPEC_FRACTION (param); -- 2.7.4