mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
inspect: Print default value of ValueArray properties
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3377>
This commit is contained in:
parent
a4733eb33d
commit
9dc787755d
1 changed files with 9 additions and 0 deletions
|
@ -744,6 +744,15 @@ print_object_properties_info (GObject * obj, GObjectClass * obj_class,
|
||||||
} else if (param->value_type == GST_TYPE_ARRAY) {
|
} else if (param->value_type == GST_TYPE_ARRAY) {
|
||||||
GstParamSpecArray *parray = GST_PARAM_SPEC_ARRAY_LIST (param);
|
GstParamSpecArray *parray = GST_PARAM_SPEC_ARRAY_LIST (param);
|
||||||
|
|
||||||
|
if (GST_VALUE_HOLDS_ARRAY (&value)) {
|
||||||
|
gchar *def = gst_value_serialize (&value);
|
||||||
|
|
||||||
|
n_print ("%sDefault%s: \"%s\"\n", PROP_ATTR_VALUE_COLOR,
|
||||||
|
RESET_COLOR, def);
|
||||||
|
|
||||||
|
g_free (def);
|
||||||
|
}
|
||||||
|
|
||||||
if (parray->element_spec) {
|
if (parray->element_spec) {
|
||||||
n_print ("%sGstValueArray of GValues of type%s %s\"%s\"%s",
|
n_print ("%sGstValueArray of GValues of type%s %s\"%s\"%s",
|
||||||
PROP_VALUE_COLOR, RESET_COLOR, DATATYPE_COLOR,
|
PROP_VALUE_COLOR, RESET_COLOR, DATATYPE_COLOR,
|
||||||
|
|
Loading…
Reference in a new issue