mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
theoraenc: use template subset check for accept-caps
It is faster than doing a query that propagates downstream and should be enough
This commit is contained in:
parent
5a0bee3f13
commit
cd7c7dba70
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue