[0.11] gst-plugins-ugly: a52dec: Don' t claim to support upstream renegotiation

Sebastian Dröge slomo at kemper.freedesktop.org
Tue Jan 10 06:17:26 PST 2012


Module: gst-plugins-ugly
Branch: 0.11
Commit: 220b88fcc1ce0e203cc042a4dffef381a87bda1c
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-ugly/commit/?id=220b88fcc1ce0e203cc042a4dffef381a87bda1c

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Tue Dec 13 14:54:18 2011 +0100

a52dec: Don't claim to support upstream renegotiation

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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ext/a52dec/gsta52dec.c b/ext/a52dec/gsta52dec.c
index 83c3f5f..3840c44 100644
--- a/ext/a52dec/gsta52dec.c
+++ b/ext/a52dec/gsta52dec.c
@@ -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;



More information about the gstreamer-commits mailing list