Commit c00aec3f authored by Wim Taymans's avatar Wim Taymans
Browse files

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.
parent 05eaedc4
2006-06-23 Wim Taymans <wim@fluendo.com>
* gst/goom/gstgoom.c: (gst_goom_src_negotiate):
Fix double caps unref when negotiation fails.
2006-06-22 Tim-Philipp Müller <tim at centricular dot net> 2006-06-22 Tim-Philipp Müller <tim at centricular dot net>
* ext/annodex/gstcmmldec.c: * ext/annodex/gstcmmldec.c:
......
...@@ -264,6 +264,8 @@ gst_goom_src_negotiate (GstGoom * goom) ...@@ -264,6 +264,8 @@ gst_goom_src_negotiate (GstGoom * goom)
templ = gst_pad_get_pad_template_caps (goom->srcpad); templ = gst_pad_get_pad_template_caps (goom->srcpad);
GST_DEBUG_OBJECT (goom, "performing negotiation");
/* see what the peer can do */ /* see what the peer can do */
othercaps = gst_pad_peer_get_caps (goom->srcpad); othercaps = gst_pad_peer_get_caps (goom->srcpad);
if (othercaps) { if (othercaps) {
...@@ -292,7 +294,6 @@ gst_goom_src_negotiate (GstGoom * goom) ...@@ -292,7 +294,6 @@ gst_goom_src_negotiate (GstGoom * goom)
no_format: no_format:
{ {
gst_caps_unref (intersect); gst_caps_unref (intersect);
gst_caps_unref (othercaps);
return FALSE; return FALSE;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment