summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-08-15 11:46:59 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-08-15 11:54:11 -0300
commitc1211659cc285003971e10f2fea2e7de55406fb8 (patch)
treed5a81f0d64982b2421d15017cfc6350bc8abd7e0
parent79bfd0f42cba892f4771d95941a9db2a4d4c2a40 (diff)
mpeg2dec: use default pad accept-caps handling
Avoids useless check of downstream caps when handling an accept-caps query
-rw-r--r--ext/mpeg2dec/gstmpeg2dec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/mpeg2dec/gstmpeg2dec.c b/ext/mpeg2dec/gstmpeg2dec.c
index 1c76cfa6..ac915651 100644
--- a/ext/mpeg2dec/gstmpeg2dec.c
+++ b/ext/mpeg2dec/gstmpeg2dec.c
@@ -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 */
}