From 14867e4ebb50bee95d1ace402b0c881d5445322f Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Sat, 15 Aug 2015 22:23:15 -0300 Subject: [PATCH] vorbisenc: use template subset check for accept-caps It is faster than doing a query that propagates downstream and should be enough --- ext/vorbis/gstvorbisenc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/vorbis/gstvorbisenc.c b/ext/vorbis/gstvorbisenc.c index 5026527..818a010 100644 --- a/ext/vorbis/gstvorbisenc.c +++ b/ext/vorbis/gstvorbisenc.c @@ -183,6 +183,8 @@ gst_vorbis_enc_init (GstVorbisEnc * vorbisenc) { GstAudioEncoder *enc = GST_AUDIO_ENCODER (vorbisenc); + GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_ENCODER_SINK_PAD (enc)); + vorbisenc->channels = -1; vorbisenc->frequency = -1; -- 2.7.4