diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-15 12:55:49 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-15 13:51:16 -0300 |
commit | a5ed877783e67bb1d4bc34ac54e2770137e1ad8a (patch) | |
tree | 23ad9e9a19fe19f59c60d098ceafa4217eda5fd6 /ext/schroedinger/gstschrodec.c | |
parent | 51dfa3b135978bf523348209b0fdf9c21e252243 (diff) | |
download | gstreamer-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.c | 3 |
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; } |