diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-15 22:23:15 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-16 12:30:30 -0300 |
commit | 14867e4ebb50bee95d1ace402b0c881d5445322f (patch) | |
tree | b26f69321f38c206179d763f4338496ddc308557 | |
parent | 6a26a42ffd3812a751a6e0b16c8d9cab0fafcdb7 (diff) |
vorbisenc: use template subset check for accept-caps
It is faster than doing a query that propagates downstream and
should be enough
-rw-r--r-- | ext/vorbis/gstvorbisenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/vorbis/gstvorbisenc.c b/ext/vorbis/gstvorbisenc.c index 5026527f0..818a010e5 100644 --- a/ext/vorbis/gstvorbisenc.c +++ b/ext/vorbis/gstvorbisenc.c @@ -183,6 +183,8 @@ gst_vorbis_enc_init (GstVorbisEnc * vorbisenc) { GstAudioEncoder *enc = GST_AUDIO_ENCODER (vorbisenc); + GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_ENCODER_SINK_PAD (enc)); + vorbisenc->channels = -1; vorbisenc->frequency = -1; |