summaryrefslogtreecommitdiff
path: root/gst/vmnc
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 /gst/vmnc
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 'gst/vmnc')
-rw-r--r--gst/vmnc/vmncdec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/vmnc/vmncdec.c b/gst/vmnc/vmncdec.c
index 54a42ed08..34e63c7bc 100644
--- a/gst/vmnc/vmncdec.c
+++ b/gst/vmnc/vmncdec.c
@@ -105,6 +105,9 @@ gst_vmnc_dec_class_init (GstVMncDecClass * klass)
static void
gst_vmnc_dec_init (GstVMncDec * dec)
{
+ 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 gboolean