diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2021-05-11 14:31:59 -0400 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2021-05-11 15:06:39 -0400 |
commit | 725763f8b21746db992e15fcb0f855ecb638e5df (patch) | |
tree | d32e10465ecf9477dbb27fd5a38f0a1914a17e76 | |
parent | d15f88adc51d419454174b67755a0bb482f3ec15 (diff) | |
download | gstreamer-plugins-base-725763f8b21746db992e15fcb0f855ecb638e5df.tar.gz |
opusdec: Add Converter class to hint gst-validate
opusdec 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.
Related to https://gitlab.freedesktop.org/gstreamer/gst-integration-testsuites/-/merge_requests/102
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1142>
-rw-r--r-- | docs/plugins/gst_plugins_cache.json | 2 | ||||
-rw-r--r-- | ext/opus/gstopusdec.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/plugins/gst_plugins_cache.json b/docs/plugins/gst_plugins_cache.json index 2db54fd8d..eef719f71 100644 --- a/docs/plugins/gst_plugins_cache.json +++ b/docs/plugins/gst_plugins_cache.json @@ -7545,7 +7545,7 @@ "GInitiallyUnowned", "GObject" ], - "klass": "Codec/Decoder/Audio", + "klass": "Codec/Decoder/Audio/Converter", "long-name": "Opus audio decoder", "pad-templates": { "sink": { diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c index c4f5df852..e085f0b9b 100644 --- a/ext/opus/gstopusdec.c +++ b/ext/opus/gstopusdec.c @@ -138,7 +138,7 @@ gst_opus_dec_class_init (GstOpusDecClass * klass) gst_element_class_add_static_pad_template (element_class, &opus_dec_sink_factory); gst_element_class_set_static_metadata (element_class, "Opus audio decoder", - "Codec/Decoder/Audio", "decode opus streams to audio", + "Codec/Decoder/Audio/Converter", "decode opus streams to audio", "Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>"); g_object_class_install_property (gobject_class, PROP_USE_INBAND_FEC, g_param_spec_boolean ("use-inband-fec", "Use in-band FEC", |