From 2c5496eb74498afc6ff26e47773af43239a07abd Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Tue, 10 Sep 2002 09:31:40 +0000 Subject: This updates all plugins to the new API for gst_pad_try_set_caps Original commit message from CVS: This updates all plugins to the new API for gst_pad_try_set_caps --- gst/filter/gstiir.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'gst/filter/gstiir.c') diff --git a/gst/filter/gstiir.c b/gst/filter/gstiir.c index c363802c..7b548f30 100644 --- a/gst/filter/gstiir.c +++ b/gst/filter/gstiir.c @@ -164,22 +164,23 @@ static GstPadConnectReturn gst_iir_sink_connect (GstPad * pad, GstCaps * caps) { GstIIR *filter; + GstPadConnectReturn set_retval; filter = GST_IIR (gst_pad_get_parent (pad)); if (!GST_CAPS_IS_FIXED (caps)) return GST_PAD_CONNECT_DELAYED; - - if (gst_pad_try_set_caps (filter->srcpad, caps)) { + + set_retval = gst_pad_try_set_caps(filter->srcpad, caps); + if (set_retval > 0) { /* connection works, so init the filter */ /* FIXME: remember to free it */ filter->state = (IIR_state *) g_malloc (sizeof (IIR_state)); IIR_init (filter->state, filter->stages, filter->gain, &(filter->A), &(filter->B)); - return GST_PAD_CONNECT_OK; } - return GST_PAD_CONNECT_REFUSED; + return set_retval; } static void -- cgit v1.2.1