mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
audiodecoders: use default pad accept-caps handling
Avoids useless check of downstream caps when handling an accept-caps query Elements: dtsdec, faad, gsmdec, mpg123audiodec, opusdec, sbcdec, adpcmdec, sirendec
This commit is contained in:
parent
f04d4dd7c8
commit
eada1366bc
1 changed files with 3 additions and 0 deletions
|
@ -167,6 +167,9 @@ gst_opus_dec_init (GstOpusDec * dec)
|
|||
dec->apply_gain = DEFAULT_APPLY_GAIN;
|
||||
|
||||
gst_audio_decoder_set_needs_format (GST_AUDIO_DECODER (dec), TRUE);
|
||||
gst_audio_decoder_set_use_default_pad_acceptcaps (GST_AUDIO_DECODER_CAST
|
||||
(dec), TRUE);
|
||||
GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_DECODER_SINK_PAD (dec));
|
||||
|
||||
gst_opus_dec_reset (dec);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue