mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
revert detailed multi-line error report
Original commit message from CVS: revert detailed multi-line error report
This commit is contained in:
parent
3aa927ac2f
commit
0e9314ac7c
1 changed files with 6 additions and 21 deletions
27
gst/gstpad.c
27
gst/gstpad.c
|
@ -557,33 +557,18 @@ gst_pad_disconnect (GstPad *srcpad,
|
|||
* Connects the source pad to the sink pad.
|
||||
*
|
||||
* You shouldn't use this API in a real application because the
|
||||
* failure mode dumps detailed diagnostics to stderr. A professional
|
||||
* application should always use gst_pad_try_connect and check
|
||||
* the return code.
|
||||
*
|
||||
* This API will probably be moved out of the main gstreamer library.
|
||||
* failure mode dumps diagnostics to stderr. A professional
|
||||
* application should never fail, or use gst_pad_try_connect and
|
||||
* check the return code.
|
||||
*/
|
||||
void
|
||||
gst_pad_connect (GstPad *srcpad,
|
||||
GstPad *sinkpad)
|
||||
{
|
||||
if (!gst_pad_try_connect (srcpad, sinkpad))
|
||||
{
|
||||
GString *buf;
|
||||
|
||||
buf = g_string_new (NULL);
|
||||
g_string_printf (buf, "\nCouldn't connect %s:%s and %s:%s -- details:\n",
|
||||
GST_DEBUG_PAD_NAME (srcpad),
|
||||
GST_DEBUG_PAD_NAME (sinkpad));
|
||||
gst_print_pad_caps (buf, 2, srcpad);
|
||||
gst_print_pad_caps (buf, 2, sinkpad);
|
||||
|
||||
g_critical (buf->str,
|
||||
GST_DEBUG_PAD_NAME (srcpad),
|
||||
GST_DEBUG_PAD_NAME (sinkpad));
|
||||
|
||||
g_string_free (buf, TRUE);
|
||||
}
|
||||
g_critical ("couldn't connect %s:%s and %s:%s",
|
||||
GST_DEBUG_PAD_NAME (srcpad),
|
||||
GST_DEBUG_PAD_NAME (sinkpad));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue