mpeg2dec: use default pad accept-caps handling

Avoids useless check of downstream caps when handling an
accept-caps query
This commit is contained in:
Thiago Santos 2015-08-15 11:46:59 -03:00
parent 79bfd0f42c
commit c1211659cc

View file

@ -135,6 +135,9 @@ gst_mpeg2dec_init (GstMpeg2dec * mpeg2dec)
{
gst_video_decoder_set_packetized (GST_VIDEO_DECODER (mpeg2dec), TRUE);
gst_video_decoder_set_needs_format (GST_VIDEO_DECODER (mpeg2dec), TRUE);
gst_video_decoder_set_use_default_pad_acceptcaps (GST_VIDEO_DECODER_CAST
(mpeg2dec), TRUE);
GST_PAD_SET_ACCEPT_TEMPLATE (GST_VIDEO_DECODER_SINK_PAD (mpeg2dec));
/* initialize the mpeg2dec acceleration */
}