mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
gst-inspect: Print GstValueArray properties nicely
https://bugzilla.gnome.org/show_bug.cgi?id=787924
This commit is contained in:
parent
053f1523ad
commit
7da98a2278
1 changed files with 9 additions and 0 deletions
|
@ -519,6 +519,15 @@ print_element_properties_info (GstElement * element)
|
||||||
pfraction->max_num, pfraction->max_den,
|
pfraction->max_num, pfraction->max_den,
|
||||||
gst_value_get_fraction_numerator (&value),
|
gst_value_get_fraction_numerator (&value),
|
||||||
gst_value_get_fraction_denominator (&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 {
|
} else {
|
||||||
n_print ("%-23.23s Unknown type %ld \"%s\"", "",
|
n_print ("%-23.23s Unknown type %ld \"%s\"", "",
|
||||||
(glong) param->value_type, g_type_name (param->value_type));
|
(glong) param->value_type, g_type_name (param->value_type));
|
||||||
|
|
Loading…
Reference in a new issue