mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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.
This commit is contained in:
parent
05eaedc496
commit
c00aec3f15
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
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)
|
||||||
|
|
||||||
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)
|
||||||
no_format:
|
no_format:
|
||||||
{
|
{
|
||||||
gst_caps_unref (intersect);
|
gst_caps_unref (intersect);
|
||||||
gst_caps_unref (othercaps);
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue