summaryrefslogtreecommitdiff
path: root/ext/twolame/gsttwolamemp2enc.c
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-08-15 22:15:26 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-08-15 22:15:26 -0300
commite1b6ef320932c79ba6e194a3d430290fbb05de3d (patch)
treeeab6041d1c99e45af816d1956140d0e3c42093c7 /ext/twolame/gsttwolamemp2enc.c
parentc1211659cc285003971e10f2fea2e7de55406fb8 (diff)
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
Diffstat (limited to 'ext/twolame/gsttwolamemp2enc.c')
-rw-r--r--ext/twolame/gsttwolamemp2enc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/twolame/gsttwolamemp2enc.c b/ext/twolame/gsttwolamemp2enc.c
index 85438769..a5e1b55e 100644
--- a/ext/twolame/gsttwolamemp2enc.c
+++ b/ext/twolame/gsttwolamemp2enc.c
@@ -418,6 +418,8 @@ gst_two_lame_init (GstTwoLame * twolame)
{
GST_DEBUG_OBJECT (twolame, "starting initialization");
+ GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_ENCODER_SINK_PAD (twolame));
+
twolame->mode = gst_two_lame_default_settings.mode;
twolame->psymodel = gst_two_lame_default_settings.psymodel;
twolame->bitrate = gst_two_lame_default_settings.bitrate;