From 220b88fcc1ce0e203cc042a4dffef381a87bda1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 13 Dec 2011 14:54:18 +0100 Subject: [PATCH] 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 file changed, 1 insertion(+) diff --git a/ext/a52dec/gsta52dec.c b/ext/a52dec/gsta52dec.c index 83c3f5f9e0..3840c4457e 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;