summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a31349a)
raw | patch | inline | side by side (parent: a31349a)
author | Sebastian Dröge <slomo@circular-chaos.org> | |
Wed, 28 May 2008 10:44:15 +0000 (10:44 +0000) | ||
committer | Sebastian Dröge <slomo@circular-chaos.org> | |
Wed, 28 May 2008 10:44:15 +0000 (10:44 +0000) |
Original commit message from CVS:
* tools/gst-inspect.c: (print_element_properties_info):
If possible print the element type of GValueArray properties.
* tools/gst-inspect.c: (print_element_properties_info):
If possible print the element type of GValueArray properties.
ChangeLog | patch | blob | history | |
tools/gst-inspect.c | patch | blob | history |
diff --git a/ChangeLog b/ChangeLog
index bff1d07ae4b70e53b8dc18d7f5b8dc80faba2f9e..0f1cfdcf285e1b21cc40eedc28f772af3f5972a3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
+2008-05-28 Sebastian Dröge <slomo@circular-chaos.org>
+
+ * tools/gst-inspect.c: (print_element_properties_info):
+ If possible print the element type of GValueArray properties.
+
2008-05-28 Sebastian Dröge <slomo@circular-chaos.org>
* gst/gstiterator.c:
diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c
index a1946241036cfcdf72b10a2b77b7a6374d1bdf46..f29eff34f9f06f1f7e75b0ef194a295bd8274e7e 100644 (file)
--- a/tools/gst-inspect.c
+++ b/tools/gst-inspect.c
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);