diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-15 22:15:26 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-15 22:15:26 -0300 |
commit | e1b6ef320932c79ba6e194a3d430290fbb05de3d (patch) | |
tree | eab6041d1c99e45af816d1956140d0e3c42093c7 /ext/twolame | |
parent | c1211659cc285003971e10f2fea2e7de55406fb8 (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')
-rw-r--r-- | ext/twolame/gsttwolamemp2enc.c | 2 |
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; |