audioencoders: use template subset check for accept-caps

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

Elements: amrnbenc, lamemp3enc, twolamemp2enc
This commit is contained in:
Thiago Santos 2015-08-15 22:15:26 -03:00
parent ebfa19b0d1
commit f781e62e09

View file

@ -281,6 +281,7 @@ gst_lamemp3enc_class_init (GstLameMP3EncClass * klass)
static void static void
gst_lamemp3enc_init (GstLameMP3Enc * lame) gst_lamemp3enc_init (GstLameMP3Enc * lame)
{ {
GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_ENCODER_SINK_PAD (lame));
} }
static gboolean static gboolean