mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 14:36:24 +00:00
mpeg2dec: use default pad accept-caps handling
Avoids useless check of downstream caps when handling an accept-caps query
This commit is contained in:
parent
79bfd0f42c
commit
c1211659cc
1 changed files with 3 additions and 0 deletions
|
@ -135,6 +135,9 @@ gst_mpeg2dec_init (GstMpeg2dec * mpeg2dec)
|
||||||
{
|
{
|
||||||
gst_video_decoder_set_packetized (GST_VIDEO_DECODER (mpeg2dec), TRUE);
|
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_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 */
|
/* initialize the mpeg2dec acceleration */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue