a52dec: Don't claim to support upstream renegotiation
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 13 Dec 2011 13:54:18 +0000 (14:54 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 13 Dec 2011 13:54:18 +0000 (14:54 +0100)
and use fixed caps on the srcpad. To correctly support
upstream renegotiation a52dec would need to check if the
caps of the downstream allocated buffer are the requested
caps or if the size is different.

Fixes bug #665989.

ext/a52dec/gsta52dec.c

index 83c3f5f..3840c44 100644 (file)
@@ -224,6 +224,7 @@ gst_a52dec_init (GstA52Dec * a52dec, GstA52DecClass * g_class)
   gst_element_add_pad (GST_ELEMENT (a52dec), a52dec->sinkpad);
 
   a52dec->srcpad = gst_pad_new_from_static_template (&src_factory, "src");
+  gst_pad_use_fixed_caps (a52dec->srcpad);
   gst_element_add_pad (GST_ELEMENT (a52dec), a52dec->srcpad);
 
   a52dec->request_channels = A52_CHANNEL;