summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2021-08-09 19:02:56 -0400
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-08-13 15:25:16 +0000
commita917648be3d980a3845ed227322a74300632643b (patch)
tree421c59ffb375a4ace66460bcaf74a11178e727b9
parentb1dd20d57a9356ba60159d589328db8839811677 (diff)
downloadgstreamer-plugins-bad-a917648be3d980a3845ed227322a74300632643b.tar.gz
fdkaacdec: Add Converter class to hint gst-validate
fdkaacdec have minimal conversion capability, adding the Converter class allow gst-validate to behave properly and not spit an error when it notice that the number of channels or rate miss-match in and out. Same logic as with opusdec, see: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1142> Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2462>
-rw-r--r--docs/plugins/gst_plugins_cache.json2
-rw-r--r--ext/fdkaac/gstfdkaacenc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/plugins/gst_plugins_cache.json b/docs/plugins/gst_plugins_cache.json
index d6ebd7c90..dd166e491 100644
--- a/docs/plugins/gst_plugins_cache.json
+++ b/docs/plugins/gst_plugins_cache.json
@@ -13930,7 +13930,7 @@
"interfaces": [
"GstPreset"
],
- "klass": "Codec/Encoder/Audio",
+ "klass": "Codec/Encoder/Audio/Converter",
"long-name": "FDK AAC audio encoder",
"pad-templates": {
"sink": {
diff --git a/ext/fdkaac/gstfdkaacenc.c b/ext/fdkaac/gstfdkaacenc.c
index 13e0d34ad..df05be238 100644
--- a/ext/fdkaac/gstfdkaacenc.c
+++ b/ext/fdkaac/gstfdkaacenc.c
@@ -580,7 +580,7 @@ gst_fdkaacenc_class_init (GstFdkAacEncClass * klass)
gst_element_class_add_static_pad_template (element_class, &src_template);
gst_element_class_set_static_metadata (element_class, "FDK AAC audio encoder",
- "Codec/Encoder/Audio", "FDK AAC audio encoder",
+ "Codec/Encoder/Audio/Converter", "FDK AAC audio encoder",
"Sebastian Dröge <sebastian@centricular.com>");
GST_DEBUG_CATEGORY_INIT (gst_fdkaacenc_debug, "fdkaacenc", 0,