From 8e93ae65e84d9581243d4474136bbd17681557bc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 19 Jun 2020 15:31:04 +0100 Subject: [PATCH] x265: ignore tune property when diffing generated docs Unfortunately it means those tune enums don't show up in the docs then, but if that's how it's gotta be.. (Problem at hand is that on Tim's machine x265enc gets an tune=animation and on the CI machine this doesn't show up.) Part-of: --- docs/plugins/gst_plugins_cache.json | 1 + ext/x265/gstx265enc.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/plugins/gst_plugins_cache.json b/docs/plugins/gst_plugins_cache.json index cfdf391..3c45632 100644 --- a/docs/plugins/gst_plugins_cache.json +++ b/docs/plugins/gst_plugins_cache.json @@ -234436,6 +234436,7 @@ ] }, "GstX265Tune": { + "ignore-enum-members": true, "kind": "enum", "values": [ { diff --git a/ext/x265/gstx265enc.c b/ext/x265/gstx265enc.c index 60496e3..fb7771c 100644 --- a/ext/x265/gstx265enc.c +++ b/ext/x265/gstx265enc.c @@ -545,7 +545,8 @@ gst_x265_enc_class_init (GstX265EncClass * klass) gst_type_mark_as_plugin_api (GST_X265_ENC_LOG_LEVEL_TYPE, 0); gst_type_mark_as_plugin_api (GST_X265_ENC_SPEED_PRESET_TYPE, 0); - gst_type_mark_as_plugin_api (GST_X265_ENC_TUNE_TYPE, 0); + gst_type_mark_as_plugin_api (GST_X265_ENC_TUNE_TYPE, + GST_PLUGIN_API_FLAG_IGNORE_ENUM_MEMBERS); } /* initialize the new element -- 2.7.4