docs: initialize values when GST_PLUGIN_API_FLAG_IGNORE_ENUM_MEMBERS is set

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5491>
This commit is contained in:
Guillaume Desmottes 2024-02-16 17:06:52 +01:00 committed by GStreamer Marge Bot
parent 93f0135798
commit b4752ef792
2 changed files with 2 additions and 38 deletions

View file

@ -247613,43 +247613,7 @@
"GstX265Tune": {
"ignore-enum-members": true,
"kind": "enum",
"values": [
{
"desc": "No tunning",
"name": "No tunning",
"value": "0"
},
{
"desc": "psnr",
"name": "psnr",
"value": "1"
},
{
"desc": "ssim",
"name": "ssim",
"value": "2"
},
{
"desc": "grain",
"name": "grain",
"value": "3"
},
{
"desc": "zerolatency",
"name": "zerolatency",
"value": "4"
},
{
"desc": "fastdecode",
"name": "fastdecode",
"value": "5"
},
{
"desc": "animation",
"name": "animation",
"value": "6"
}
]
"values": []
}
},
"package": "GStreamer Bad Plug-ins",

View file

@ -177,7 +177,7 @@ _serialize_enum (GString * json, GType gtype, GstPluginAPIFlags api_flags)
"\"kind\": \"enum\"", json->len ? "," : "", g_type_name (gtype));
if (api_flags & GST_PLUGIN_API_FLAG_IGNORE_ENUM_MEMBERS) {
g_string_append (json, ",\"ignore-enum-members\": true}");
g_string_append (json, ",\"ignore-enum-members\": true, \"values\": []}");
} else {
g_string_append (json, ",\"values\": [");