wavenc: Set fixedcaps getcaps function on the sinkpad
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 29 Apr 2011 06:59:20 +0000 (08:59 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 14 May 2011 09:52:12 +0000 (11:52 +0200)
wavenc does not allow to change the caps during playback
and always returning the template caps is just wrong.

gst/wavenc/gstwavenc.c

index 7db0e18..bd45380 100644 (file)
@@ -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");