mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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
This commit is contained in:
parent
eada1366bc
commit
f1cbca9480
1 changed files with 2 additions and 0 deletions
|
@ -376,6 +376,8 @@ gst_opus_enc_init (GstOpusEnc * enc)
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (enc, "init");
|
GST_DEBUG_OBJECT (enc, "init");
|
||||||
|
|
||||||
|
GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_ENCODER_SINK_PAD (enc));
|
||||||
|
|
||||||
g_mutex_init (&enc->property_lock);
|
g_mutex_init (&enc->property_lock);
|
||||||
|
|
||||||
enc->n_channels = -1;
|
enc->n_channels = -1;
|
||||||
|
|
Loading…
Reference in a new issue