mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
pad: Print debug output from gst_pad_link_full() if preparing linking failed
Makes it easier to find linking failures in debug logs.
This commit is contained in:
parent
c8f680e395
commit
36f7b13658
1 changed files with 5 additions and 1 deletions
|
@ -2355,8 +2355,12 @@ gst_pad_link_full (GstPad * srcpad, GstPad * sinkpad, GstPadLinkCheck flags)
|
|||
/* prepare will also lock the two pads */
|
||||
result = gst_pad_link_prepare (srcpad, sinkpad, flags);
|
||||
|
||||
if (G_UNLIKELY (result != GST_PAD_LINK_OK))
|
||||
if (G_UNLIKELY (result != GST_PAD_LINK_OK)) {
|
||||
GST_CAT_INFO (GST_CAT_PADS, "link between %s:%s and %s:%s failed: %s",
|
||||
GST_DEBUG_PAD_NAME (srcpad), GST_DEBUG_PAD_NAME (sinkpad),
|
||||
gst_pad_link_get_name (result));
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* must set peers before calling the link function */
|
||||
GST_PAD_PEER (srcpad) = sinkpad;
|
||||
|
|
Loading…
Reference in a new issue