Commit a1aa942a authored by Thiago Santos's avatar Thiago Santos

audioencoders: use template subset check for accept-caps

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

Elements: speexenc, wavpackenc, mulawenc, alawenc
parent 1b27badc
......@@ -242,6 +242,7 @@ gst_speex_enc_init (GstSpeexEnc * enc)
/* arrange granulepos marking (and required perfect ts) */
gst_audio_encoder_set_mark_granule (benc, TRUE);
gst_audio_encoder_set_perfect_timestamp (benc, TRUE);
GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_ENCODER_SINK_PAD (enc));
}
static gboolean
......
......@@ -345,6 +345,8 @@ gst_wavpack_enc_init (GstWavpackEnc * enc)
/* require perfect ts */
gst_audio_encoder_set_perfect_timestamp (benc, TRUE);
GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_ENCODER_SINK_PAD (enc));
}
......
......@@ -423,4 +423,5 @@ gst_alaw_enc_class_init (GstALawEncClass * klass)
static void
gst_alaw_enc_init (GstALawEnc * alawenc)
{
GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_ENCODER_SINK_PAD (alawenc));
}
......@@ -207,5 +207,5 @@ gst_mulawenc_class_init (GstMuLawEncClass * klass)
static void
gst_mulawenc_init (GstMuLawEnc * mulawenc)
{
GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_ENCODER_SINK_PAD (mulawenc));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment