From: Stefan Kost Date: Wed, 16 Feb 2011 13:13:05 +0000 (+0200) Subject: utils: tell also what pad a pad is already linked against X-Git-Tag: RELEASE-0.10.33~360 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e35837402179a2dcf30e8738a25e83493e54cc0;p=platform%2Fupstream%2Fgstreamer.git utils: tell also what pad a pad is already linked against --- diff --git a/gst/gstutils.c b/gst/gstutils.c index 097daff..fd5d32c 100644 --- a/gst/gstutils.c +++ b/gst/gstutils.c @@ -1593,8 +1593,9 @@ gst_element_link_pads_full (GstElement * src, const gchar * srcpadname, return FALSE; } if (GST_PAD_PEER (srcpad) != NULL) { - GST_CAT_DEBUG (GST_CAT_ELEMENT_PADS, "pad %s:%s is already linked", - GST_DEBUG_PAD_NAME (srcpad)); + GST_CAT_DEBUG (GST_CAT_ELEMENT_PADS, + "pad %s:%s is already linked to %s:%s", GST_DEBUG_PAD_NAME (srcpad), + GST_DEBUG_PAD_NAME (GST_PAD_PEER (srcpad))); gst_object_unref (srcpad); return FALSE; } @@ -1627,8 +1628,10 @@ gst_element_link_pads_full (GstElement * src, const gchar * srcpadname, return FALSE; } if (GST_PAD_PEER (destpad) != NULL) { - GST_CAT_DEBUG (GST_CAT_ELEMENT_PADS, "pad %s:%s is already linked", - GST_DEBUG_PAD_NAME (destpad)); + GST_CAT_DEBUG (GST_CAT_ELEMENT_PADS, + "pad %s:%s is already linked to %s:%s", + GST_DEBUG_PAD_NAME (destpad), + GST_DEBUG_PAD_NAME (GST_PAD_PEER (destpad))); gst_object_unref (destpad); return FALSE; }