summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-08-15 07:41:24 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-08-15 13:44:35 -0300
commit065968c3fce5874f180f23dd293db32f86cd98f6 (patch)
tree62371144c3b692af4a66ead600352f74de1baaae
parent0ea4430522cf79f542696b2d8ae49dc4719f3291 (diff)
vorbisdec: use default pad accept-caps handling
Avoids useless check of downstream caps when handling an accept-caps query
-rw-r--r--ext/vorbis/gstvorbisdec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/vorbis/gstvorbisdec.c b/ext/vorbis/gstvorbisdec.c
index 00dc784f0..f679d7ef7 100644
--- a/ext/vorbis/gstvorbisdec.c
+++ b/ext/vorbis/gstvorbisdec.c
@@ -109,6 +109,9 @@ gst_vorbis_dec_class_init (GstVorbisDecClass * klass)
static void
gst_vorbis_dec_init (GstVorbisDec * dec)
{
+ 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));
}
static void