diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-15 12:58:40 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-15 13:51:16 -0300 |
commit | eada1366bcba4467b3d91b9b4e548814df239206 (patch) | |
tree | 33736fb26ab0ac992bef54d0607eb651a698a191 | |
parent | f04d4dd7c8bc4fe1f662ecbe0c7da6da224299be (diff) | |
download | gstreamer-plugins-base-eada1366bcba4467b3d91b9b4e548814df239206.tar.gz |
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
-rw-r--r-- | ext/opus/gstopusdec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c index 20eb44245..d8a7eb85f 100644 --- a/ext/opus/gstopusdec.c +++ b/ext/opus/gstopusdec.c @@ -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); } |