summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-08-15 22:22:41 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-08-16 08:14:35 -0300
commit4b379d211f743b469fcfee087e11ec528d354095 (patch)
tree9321e6b0c2efad6ba0cd6171e4c0f860d8dd4e7e
parent4eb68c28437e232259e08b1d90f33f355612ad78 (diff)
theoraenc: use template subset check for accept-capsacceptcaps
It is faster than doing a query that propagates downstream and should be enough
-rw-r--r--ext/theora/gsttheoraenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/theora/gsttheoraenc.c b/ext/theora/gsttheoraenc.c
index ff83aff9b..d1060501b 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;