Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ndufresne committed May 11, 2021
1 parent d15f88a commit 725763f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/plugins/gst_plugins_cache.json
Expand Up @@ -7545,7 +7545,7 @@
"GInitiallyUnowned",
"GObject"
],
"klass": "Codec/Decoder/Audio",
"klass": "Codec/Decoder/Audio/Converter",
"long-name": "Opus audio decoder",
"pad-templates": {
"sink": {
Expand Down
2 changes: 1 addition & 1 deletion ext/opus/gstopusdec.c
Expand Up @@ -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",
Expand Down

0 comments on commit 725763f

Please sign in to comment.