mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
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:
parent
992e992730
commit
ef6f8ef784
2 changed files with 8 additions and 9 deletions
|
@ -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:
|
||||
|
|
|
@ -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 (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) {
|
||||
|
|
Loading…
Reference in a new issue