Commit 407b7774 authored by Luis de Bethencourt's avatar Luis de Bethencourt Committed by Sebastian Dröge
Browse files

theora: use fixed src cap pads

parent 1ce538d9
...@@ -444,6 +444,7 @@ gst_theora_enc_init (GstTheoraEnc * enc, GstTheoraEncClass * g_class) ...@@ -444,6 +444,7 @@ gst_theora_enc_init (GstTheoraEnc * enc, GstTheoraEncClass * g_class)
enc->srcpad = enc->srcpad =
gst_pad_new_from_static_template (&theora_enc_src_factory, "src"); gst_pad_new_from_static_template (&theora_enc_src_factory, "src");
gst_pad_set_event_function (enc->srcpad, theora_enc_src_event); 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_element_add_pad (GST_ELEMENT (enc), enc->srcpad);
gst_segment_init (&enc->segment, GST_FORMAT_UNDEFINED); gst_segment_init (&enc->segment, GST_FORMAT_UNDEFINED);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment