mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
docs: plugins-scanner: Handle interface used for plugin API properties
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3236>
This commit is contained in:
parent
a633f5d287
commit
dbed9978ac
1 changed files with 8 additions and 1 deletions
|
@ -406,8 +406,15 @@ _add_properties (GString * json, GString * other_types,
|
|||
} else if (G_IS_PARAM_SPEC_FLAGS (spec)) {
|
||||
_serialize_flags (other_types, spec->value_type);
|
||||
} else if (G_IS_PARAM_SPEC_OBJECT (spec)) {
|
||||
GType inst_type = spec->value_type;
|
||||
GObject *obj = g_value_get_object (&value);
|
||||
|
||||
if (obj) {
|
||||
inst_type = G_OBJECT_TYPE (obj);
|
||||
}
|
||||
|
||||
_serialize_object (other_types, seen_other_types, spec->value_type,
|
||||
spec->value_type);
|
||||
inst_type);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue