mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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.
This commit is contained in:
parent
703bab6885
commit
c038df6671
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue