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/daala | |
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/daala')
-rw-r--r-- | ext/daala/gstdaaladec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/daala/gstdaaladec.c b/ext/daala/gstdaaladec.c index 74302bf39..0cf4f63da 100644 --- a/ext/daala/gstdaaladec.c +++ b/ext/daala/gstdaaladec.c @@ -131,6 +131,9 @@ gst_daala_dec_init (GstDaalaDec * dec) * but is not marked that way so data gets parsed and keyframes marked */ gst_video_decoder_set_packetized (GST_VIDEO_DECODER (dec), FALSE); gst_video_decoder_set_needs_format (GST_VIDEO_DECODER (dec), TRUE); + gst_video_decoder_set_use_default_pad_acceptcaps (GST_VIDEO_DECODER_CAST + (dec), TRUE); + GST_PAD_SET_ACCEPT_TEMPLATE (GST_VIDEO_DECODER_SINK_PAD (dec)); } static void |