summaryrefslogtreecommitdiff
path: root/ext/dts
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-08-15 12:58:40 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-08-15 13:51:16 -0300
commit56b822f9f675bb3afeded9e5420bd0d126b5917a (patch)
treef9017dffd5c0efac8a1292475374970863ecb744 /ext/dts
parenta5ed877783e67bb1d4bc34ac54e2770137e1ad8a (diff)
downloadgstreamer-plugins-bad-56b822f9f675bb3afeded9e5420bd0d126b5917a.tar.gz
audiodecoders: use default pad accept-caps handling
Avoids useless check of downstream caps when handling an accept-caps query Elements: dtsdec, faad, gsmdec, mpg123audiodec, opusdec, sbcdec, adpcmdec, sirendec
Diffstat (limited to 'ext/dts')
-rw-r--r--ext/dts/gstdtsdec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/dts/gstdtsdec.c b/ext/dts/gstdtsdec.c
index a593eee32..b7260861d 100644
--- a/ext/dts/gstdtsdec.c
+++ b/ext/dts/gstdtsdec.c
@@ -209,6 +209,10 @@ gst_dtsdec_init (GstDtsDec * dtsdec)
dtsdec->request_channels = DCA_CHANNEL;
dtsdec->dynamic_range_compression = FALSE;
+ gst_audio_decoder_set_use_default_pad_acceptcaps (GST_AUDIO_DECODER_CAST
+ (dtsdec), TRUE);
+ GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_DECODER_SINK_PAD (dtsdec));
+
/* retrieve and intercept base class chain.
* Quite HACKish, but that's dvd specs for you,
* since one buffer needs to be split into 2 frames */