projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8f680e
)
pad: Print debug output from gst_pad_link_full() if preparing linking failed
author
Sebastian Dröge
<sebastian@centricular.com>
Sun, 5 Apr 2015 01:33:18 +0000
(18:33 -0700)
committer
Sebastian Dröge
<sebastian@centricular.com>
Sun, 5 Apr 2015 01:33:50 +0000
(18:33 -0700)
Makes it easier to find linking failures in debug logs.
gst/gstpad.c
patch
|
blob
|
history
diff --git
a/gst/gstpad.c
b/gst/gstpad.c
index
f42a0f9
..
b762465
100644
(file)
--- a/
gst/gstpad.c
+++ b/
gst/gstpad.c
@@
-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;