mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
inspect: print structure values of properties
This commit is contained in:
parent
a89789366f
commit
df7bfb6a10
1 changed files with 6 additions and 0 deletions
|
@ -483,6 +483,12 @@ print_element_properties_info (GstElement * element)
|
|||
} else if (G_IS_PARAM_SPEC_BOXED (param)) {
|
||||
n_print ("%-23.23s Boxed pointer of type \"%s\"", "",
|
||||
g_type_name (param->value_type));
|
||||
if (param->value_type == GST_TYPE_STRUCTURE) {
|
||||
const GstStructure *s = gst_value_get_structure (&value);
|
||||
if (s)
|
||||
gst_structure_foreach (s, print_field,
|
||||
(gpointer) " ");
|
||||
}
|
||||
} else if (G_IS_PARAM_SPEC_POINTER (param)) {
|
||||
if (param->value_type != G_TYPE_POINTER) {
|
||||
n_print ("%-23.23s Pointer of type \"%s\".", "",
|
||||
|
|
Loading…
Reference in a new issue