mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
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:
parent
93f0135798
commit
b4752ef792
2 changed files with 2 additions and 38 deletions
|
@ -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",
|
||||
|
|
|
@ -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\": [");
|
||||
|
||||
|
|
Loading…
Reference in a new issue