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 12:30:30 -0300
commitcd7c7dba703acfa42632a467544ae78d782d38f1 (patch)
tree97b13d575da802992b236d050dfe7f8b6780f13b
parent5a0bee3f13ca05f8587508d2ef929e476484039e (diff)
theoraenc: use template subset check for accept-caps
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;