Commit 88203989 authored by Sebastian Dröge's avatar Sebastian Dröge

wavenc: Set fixedcaps getcaps function on the sinkpad

wavenc does not allow to change the caps during playback
and always returning the template caps is just wrong.
parent f8ed8dd6
......@@ -179,6 +179,7 @@ gst_wavenc_init (GstWavEnc * wavenc, GstWavEncClass * klass)
GST_DEBUG_FUNCPTR (gst_wavenc_event));
gst_pad_set_setcaps_function (wavenc->sinkpad,
GST_DEBUG_FUNCPTR (gst_wavenc_sink_setcaps));
gst_pad_use_fixed_caps (wavenc->sinkpad);
gst_element_add_pad (GST_ELEMENT (wavenc), wavenc->sinkpad);
wavenc->srcpad = gst_pad_new_from_static_template (&src_factory, "src");
......
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