summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-08-28 12:57:33 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-08-28 12:57:33 -0300
commitc038df6671d8e6a8c31ab5363f3c3f5b6045e3fb (patch)
tree6477045a5fe31460e2bbc03032b2caf7dba05d25
parent703bab688566c6fe4de934dbb2b93300bc2aa4ff (diff)
omxvideodec: use default pad accept-caps handling
Instead of the videodecoder one. The OMX video decoders have their valid input in the template pad, so just check against that to avoid doing a query downstream.
-rw-r--r--omx/gstomxvideodec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c
index b8c3756..d52a576 100644
--- a/omx/gstomxvideodec.c
+++ b/omx/gstomxvideodec.c
@@ -137,6 +137,9 @@ static void
gst_omx_video_dec_init (GstOMXVideoDec * self)
{
gst_video_decoder_set_packetized (GST_VIDEO_DECODER (self), TRUE);
+ gst_video_decoder_set_use_default_pad_acceptcaps (GST_VIDEO_DECODER_CAST
+ (self), TRUE);
+ GST_PAD_SET_ACCEPT_TEMPLATE (GST_VIDEO_DECODER_SINK_PAD (self));
g_mutex_init (&self->drain_lock);
g_cond_init (&self->drain_cond);