summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-09-01 08:59:54 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-09-01 09:01:45 -0300
commit1f3bf04fe7f8309cebee81b997315160166bea7f (patch)
treefbc92718c7b8845594520db6bababd03f32be626
parentc038df6671d8e6a8c31ab5363f3c3f5b6045e3fb (diff)
omxaudiodec: use default pad accept-caps handling
Instead of the audiodecoder one. The OMX audioo decoders have their valid input in the template pad, so just check against that to avoid doing a query downstream.
-rw-r--r--omx/gstomxaudiodec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/omx/gstomxaudiodec.c b/omx/gstomxaudiodec.c
index e095cf3..9b84555 100644
--- a/omx/gstomxaudiodec.c
+++ b/omx/gstomxaudiodec.c
@@ -102,6 +102,9 @@ gst_omx_audio_dec_init (GstOMXAudioDec * self)
{
gst_audio_decoder_set_needs_format (GST_AUDIO_DECODER (self), TRUE);
gst_audio_decoder_set_drainable (GST_AUDIO_DECODER (self), TRUE);
+ gst_audio_decoder_set_use_default_pad_acceptcaps (GST_AUDIO_DECODER_CAST
+ (self), TRUE);
+ GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_DECODER_SINK_PAD (self));
g_mutex_init (&self->drain_lock);
g_cond_init (&self->drain_cond);