diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-12-13 14:54:18 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-12-13 14:54:18 +0100 |
commit | 220b88fcc1ce0e203cc042a4dffef381a87bda1c (patch) | |
tree | 40339ef7cded1cf2a628964adac5865c2ef32cd1 | |
parent | cdf8d0f6b2d784cf7cce360a310cef3adebc3d66 (diff) |
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.
-rw-r--r-- | 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 83c3f5f9..3840c445 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; |