From cd7c7dba703acfa42632a467544ae78d782d38f1 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Sat, 15 Aug 2015 22:22:41 -0300 Subject: [PATCH] theoraenc: use template subset check for accept-caps It is faster than doing a query that propagates downstream and should be enough --- ext/theora/gsttheoraenc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/theora/gsttheoraenc.c b/ext/theora/gsttheoraenc.c index ff83aff..d106050 100644 --- a/ext/theora/gsttheoraenc.c +++ b/ext/theora/gsttheoraenc.c @@ -306,6 +306,8 @@ gst_theora_enc_class_init (GstTheoraEncClass * klass) static void gst_theora_enc_init (GstTheoraEnc * enc) { + GST_PAD_SET_ACCEPT_TEMPLATE (GST_VIDEO_ENCODER_SINK_PAD (enc)); + enc->video_bitrate = THEORA_DEF_BITRATE; enc->video_quality = THEORA_DEF_QUALITY; enc->keyframe_auto = THEORA_DEF_KEYFRAME_AUTO; -- 2.7.4