projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6082ad
)
audiodecoders: use default pad accept-caps handling
author
Thiago Santos
<thiagoss@osg.samsung.com>
Sat, 15 Aug 2015 15:58:40 +0000
(12:58 -0300)
committer
Tim-Philipp Müller
<tim@centricular.com>
Tue, 16 Feb 2016 10:40:40 +0000
(10:40 +0000)
Avoids useless check of downstream caps when handling an
accept-caps query
Elements: dtsdec, faad, gsmdec, mpg123audiodec, opusdec,
sbcdec, adpcmdec, sirendec
ext/mpg123/gstmpg123audiodec.c
patch
|
blob
|
history
diff --git
a/ext/mpg123/gstmpg123audiodec.c
b/ext/mpg123/gstmpg123audiodec.c
index
60d1979
..
46f6db9
100644
(file)
--- a/
ext/mpg123/gstmpg123audiodec.c
+++ b/
ext/mpg123/gstmpg123audiodec.c
@@
-197,6
+197,9
@@
gst_mpg123_audio_dec_init (GstMpg123AudioDec * mpg123_decoder)
{
mpg123_decoder->handle = NULL;
gst_audio_decoder_set_needs_format (GST_AUDIO_DECODER (mpg123_decoder), TRUE);
+ gst_audio_decoder_set_use_default_pad_acceptcaps (GST_AUDIO_DECODER_CAST
+ (mpg123_decoder), TRUE);
+ GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_DECODER_SINK_PAD (mpg123_decoder));
}