From a6dc5e19a288f5e135f3f3a13dc3748a7a250b47 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Sun, 16 Aug 2015 07:06:44 -0300 Subject: videoencoders: use template subset check for accept-caps It is faster than doing a query that propagates downstream and should be enough Elements: openjpegenc, schroenc, webpenc, pnmenc --- ext/webp/gstwebpenc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/webp/gstwebpenc.c') diff --git a/ext/webp/gstwebpenc.c b/ext/webp/gstwebpenc.c index b813e4e37..75891eafe 100644 --- a/ext/webp/gstwebpenc.c +++ b/ext/webp/gstwebpenc.c @@ -163,6 +163,8 @@ gst_webp_enc_class_init (GstWebpEncClass * klass) static void gst_webp_enc_init (GstWebpEnc * webpenc) { + GST_PAD_SET_ACCEPT_TEMPLATE (GST_VIDEO_ENCODER_SINK_PAD (webpenc)); + webpenc->lossless = DEFAULT_LOSSLESS; webpenc->quality = DEFAULT_QUALITY; webpenc->speed = DEFAULT_SPEED; -- cgit v1.2.1