gst/gstutils.c: cleanup double code

Original commit message from CVS:
* gst/gstutils.c: (gst_element_link_pads):
cleanup double code
This commit is contained in:
Stefan Kost 2006-04-28 17:52:13 +00:00
parent 992e992730
commit ef6f8ef784
2 changed files with 8 additions and 9 deletions

View file

@ -1,3 +1,8 @@
2006-04-28 Stefan Kost <ensonic@users.sf.net>
* gst/gstutils.c: (gst_element_link_pads):
cleanup double code
2006-04-28 Stefan Kost <ensonic@users.sf.net>
* libs/gst/controller/gstcontroller.c:

View file

@ -1439,17 +1439,13 @@ gst_element_link_pads (GstElement * src, const gchar * srcpadname,
if (srcpadname) {
GST_CAT_DEBUG (GST_CAT_ELEMENT_PADS, "no link possible from %s:%s to %s",
GST_DEBUG_PAD_NAME (srcpad), GST_ELEMENT_NAME (dest));
if (srcpad)
gst_object_unref (srcpad);
srcpad = NULL;
if (destpad)
gst_object_unref (destpad);
destpad = NULL;
} else {
}
if (srcpad)
gst_object_unref (srcpad);
srcpad = NULL;
}
if (destpad) {
/* loop through the existing pads in the destination */
@ -1465,8 +1461,6 @@ gst_element_link_pads (GstElement * src, const gchar * srcpadname,
GST_DEBUG_PAD_NAME (temp), GST_DEBUG_PAD_NAME (destpad));
gst_object_unref (temp);
gst_object_unref (destpad);
if (srcpad)
gst_object_unref (srcpad);
return TRUE;
}
if (temp) {