audioencoders: use template subset check for accept-caps

It is faster than doing a query that propagates downstream and
should be enough

Elements: faac, gsmenc, opusenc, sbcenc, voamrwbenc, adpcmenc, sirenenc
This commit is contained in:
Thiago Santos 2015-08-16 07:18:34 -03:00
parent eada1366bc
commit f1cbca9480

View file

@ -376,6 +376,8 @@ gst_opus_enc_init (GstOpusEnc * enc)
GST_DEBUG_OBJECT (enc, "init");
GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_ENCODER_SINK_PAD (enc));
g_mutex_init (&enc->property_lock);
enc->n_channels = -1;