mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 06:26:23 +00:00
utils: tell also what pad a pad is already linked against
This commit is contained in:
parent
c1c0c86bba
commit
5e35837402
1 changed files with 7 additions and 4 deletions
|
@ -1593,8 +1593,9 @@ gst_element_link_pads_full (GstElement * src, const gchar * srcpadname,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if (GST_PAD_PEER (srcpad) != NULL) {
|
if (GST_PAD_PEER (srcpad) != NULL) {
|
||||||
GST_CAT_DEBUG (GST_CAT_ELEMENT_PADS, "pad %s:%s is already linked",
|
GST_CAT_DEBUG (GST_CAT_ELEMENT_PADS,
|
||||||
GST_DEBUG_PAD_NAME (srcpad));
|
"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);
|
gst_object_unref (srcpad);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -1627,8 +1628,10 @@ gst_element_link_pads_full (GstElement * src, const gchar * srcpadname,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if (GST_PAD_PEER (destpad) != NULL) {
|
if (GST_PAD_PEER (destpad) != NULL) {
|
||||||
GST_CAT_DEBUG (GST_CAT_ELEMENT_PADS, "pad %s:%s is already linked",
|
GST_CAT_DEBUG (GST_CAT_ELEMENT_PADS,
|
||||||
GST_DEBUG_PAD_NAME (destpad));
|
"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);
|
gst_object_unref (destpad);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue