From c00aec3f154737829a1fd002abb27223c871bd9c Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 23 Jun 2006 09:35:45 +0000 Subject: gst/goom/gstgoom.c: Fix double caps unref when negotiation fails. Original commit message from CVS: * gst/goom/gstgoom.c: (gst_goom_src_negotiate): Fix double caps unref when negotiation fails. --- gst/goom/gstgoom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gst/goom') diff --git a/gst/goom/gstgoom.c b/gst/goom/gstgoom.c index f728ada1..26334316 100644 --- a/gst/goom/gstgoom.c +++ b/gst/goom/gstgoom.c @@ -264,6 +264,8 @@ gst_goom_src_negotiate (GstGoom * goom) templ = gst_pad_get_pad_template_caps (goom->srcpad); + GST_DEBUG_OBJECT (goom, "performing negotiation"); + /* see what the peer can do */ othercaps = gst_pad_peer_get_caps (goom->srcpad); if (othercaps) { @@ -292,7 +294,6 @@ gst_goom_src_negotiate (GstGoom * goom) no_format: { gst_caps_unref (intersect); - gst_caps_unref (othercaps); return FALSE; } } -- cgit