summaryrefslogtreecommitdiff
path: root/ext/schroedinger/gstschrodec.c
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-08-15 12:55:49 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-08-15 13:51:16 -0300
commita5ed877783e67bb1d4bc34ac54e2770137e1ad8a (patch)
tree23ad9e9a19fe19f59c60d098ceafa4217eda5fd6 /ext/schroedinger/gstschrodec.c
parent51dfa3b135978bf523348209b0fdf9c21e252243 (diff)
downloadgstreamer-plugins-bad-a5ed877783e67bb1d4bc34ac54e2770137e1ad8a.tar.gz
videodecoders: use default pad accept-caps handling
Avoids useless check of downstream caps when handling an accept-caps query Elements: daaladec, libde265dec, openjpegdec, rsvgdec, schrodec, webpdec, pnmdec, vmncdec, openexrdec
Diffstat (limited to 'ext/schroedinger/gstschrodec.c')
-rw-r--r--ext/schroedinger/gstschrodec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/schroedinger/gstschrodec.c b/ext/schroedinger/gstschrodec.c
index 15065af1e..6ac6ae9dc 100644
--- a/ext/schroedinger/gstschrodec.c
+++ b/ext/schroedinger/gstschrodec.c
@@ -155,6 +155,9 @@ gst_schro_dec_init (GstSchroDec * schro_dec)
schro_dec->decoder = schro_decoder_new ();
gst_video_decoder_set_packetized (GST_VIDEO_DECODER (schro_dec), FALSE);
+ gst_video_decoder_set_use_default_pad_acceptcaps (GST_VIDEO_DECODER_CAST
+ (schro_dec), TRUE);
+ GST_PAD_SET_ACCEPT_TEMPLATE (GST_VIDEO_DECODER_SINK_PAD (schro_dec));
schro_dec->header_read = FALSE;
}