It is faster than doing a query that propagates downstream and
should be enough
Elements: faac, gsmenc, opusenc, sbcenc, voamrwbenc, adpcmenc, sirenenc
static void
gst_faac_init (GstFaac * faac)
{
+ GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_ENCODER_SINK_PAD (faac));
}
static void
static void
gst_gsmenc_init (GstGSMEnc * gsmenc)
{
+ GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_ENCODER_SINK_PAD (gsmenc));
}
static gboolean
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;
static void
gst_sbc_enc_init (GstSbcEnc * self)
{
+ GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_ENCODER_SINK_PAD (self));
self->subbands = 0;
self->blocks = 0;
self->rate = 0;
static void
gst_voaacenc_init (GstVoAacEnc * voaacenc)
{
+ GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_ENCODER_SINK_PAD (voaacenc));
voaacenc->bitrate = VOAAC_ENC_DEFAULT_BITRATE;
voaacenc->output_format = VOAAC_ENC_DEFAULT_OUTPUTFORMAT;
static void
gst_voamrwbenc_init (GstVoAmrWbEnc * amrwbenc)
{
+ GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_ENCODER_SINK_PAD (amrwbenc));
+
/* init rest */
amrwbenc->handle = NULL;
amrwbenc->channels = 0;
static void
adpcmenc_init (ADPCMEnc * enc)
{
+ GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_ENCODER_SINK_PAD (enc));
+
/* Set defaults. */
enc->blocksize = DEFAULT_ADPCM_BLOCK_SIZE;
enc->layout = DEFAULT_ADPCM_LAYOUT;
static void
gst_siren_enc_init (GstSirenEnc * enc)
{
+ GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_ENCODER_SINK_PAD (enc));
}
static gboolean