mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 17:22:29 +00:00
vorbisdec: use default pad accept-caps handling
Avoids useless check of downstream caps when handling an accept-caps query
This commit is contained in:
parent
0ea4430522
commit
065968c3fc
1 changed files with 3 additions and 0 deletions
|
@ -109,6 +109,9 @@ gst_vorbis_dec_class_init (GstVorbisDecClass * klass)
|
||||||
static void
|
static void
|
||||||
gst_vorbis_dec_init (GstVorbisDec * dec)
|
gst_vorbis_dec_init (GstVorbisDec * dec)
|
||||||
{
|
{
|
||||||
|
gst_audio_decoder_set_use_default_pad_acceptcaps (GST_AUDIO_DECODER_CAST
|
||||||
|
(dec), TRUE);
|
||||||
|
GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_DECODER_SINK_PAD (dec));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue