diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-16 07:18:34 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-17 10:07:54 -0300 |
commit | 6517282af7f9fba5ad30d9d8cf42077223f3bcb3 (patch) | |
tree | 1d7996970ea79f08dadda693cdd0ab42057d7f59 /gst/adpcmenc/adpcmenc.c | |
parent | 6135ebebeed3163e77117c4be0f4b39362c3f193 (diff) | |
download | gstreamer-plugins-bad-6517282af7f9fba5ad30d9d8cf42077223f3bcb3.tar.gz |
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
Diffstat (limited to 'gst/adpcmenc/adpcmenc.c')
-rw-r--r-- | gst/adpcmenc/adpcmenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/adpcmenc/adpcmenc.c b/gst/adpcmenc/adpcmenc.c index 36d336c90..def90cf85 100644 --- a/gst/adpcmenc/adpcmenc.c +++ b/gst/adpcmenc/adpcmenc.c @@ -421,6 +421,8 @@ adpcmenc_stop (GstAudioEncoder * enc) 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; |