From 407b77740ea31543b8cbe8b0edf516ea9abbe2d8 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Thu, 2 Jun 2011 19:08:41 +0200 Subject: [PATCH] theora: use fixed src cap pads --- ext/theora/gsttheoraenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/theora/gsttheoraenc.c b/ext/theora/gsttheoraenc.c index 15c9186a8c..6259be7d9a 100644 --- a/ext/theora/gsttheoraenc.c +++ b/ext/theora/gsttheoraenc.c @@ -444,6 +444,7 @@ gst_theora_enc_init (GstTheoraEnc * enc, GstTheoraEncClass * g_class) enc->srcpad = gst_pad_new_from_static_template (&theora_enc_src_factory, "src"); gst_pad_set_event_function (enc->srcpad, theora_enc_src_event); + gst_pad_use_fixed_caps (enc->srcpad); gst_element_add_pad (GST_ELEMENT (enc), enc->srcpad); gst_segment_init (&enc->segment, GST_FORMAT_UNDEFINED);