mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:36:20 +00:00
vorbisenc: use template subset check for accept-caps
It is faster than doing a query that propagates downstream and should be enough
This commit is contained in:
parent
6a26a42ffd
commit
14867e4ebb
1 changed files with 2 additions and 0 deletions
|
@ -183,6 +183,8 @@ gst_vorbis_enc_init (GstVorbisEnc * vorbisenc)
|
||||||
{
|
{
|
||||||
GstAudioEncoder *enc = GST_AUDIO_ENCODER (vorbisenc);
|
GstAudioEncoder *enc = GST_AUDIO_ENCODER (vorbisenc);
|
||||||
|
|
||||||
|
GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_ENCODER_SINK_PAD (enc));
|
||||||
|
|
||||||
vorbisenc->channels = -1;
|
vorbisenc->channels = -1;
|
||||||
vorbisenc->frequency = -1;
|
vorbisenc->frequency = -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue