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:
Thibault Saunier 2022-10-21 11:11:13 +02:00 committed by GStreamer Marge Bot
parent a633f5d287
commit dbed9978ac

View file

@ -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);
}
}