projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a0bee3
)
theoraenc: use template subset check for accept-caps
author
Thiago Santos
<thiagoss@osg.samsung.com>
Sun, 16 Aug 2015 01:22:41 +0000
(22:22 -0300)
committer
Thiago Santos
<thiagoss@osg.samsung.com>
Sun, 16 Aug 2015 15:30:30 +0000
(12:30 -0300)
It is faster than doing a query that propagates downstream and
should be enough
ext/theora/gsttheoraenc.c
patch
|
blob
|
history
diff --git
a/ext/theora/gsttheoraenc.c
b/ext/theora/gsttheoraenc.c
index
ff83aff
..
d106050
100644
(file)
--- 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;