revert detailed multi-line error report

Original commit message from CVS:
revert detailed multi-line error report
This commit is contained in:
Joshua N. Pritikin 2001-09-17 23:56:30 +00:00
parent 3aa927ac2f
commit 0e9314ac7c

View file

@ -557,33 +557,18 @@ gst_pad_disconnect (GstPad *srcpad,
* Connects the source pad to the sink pad. * Connects the source pad to the sink pad.
* *
* You shouldn't use this API in a real application because the * You shouldn't use this API in a real application because the
* failure mode dumps detailed diagnostics to stderr. A professional * failure mode dumps diagnostics to stderr. A professional
* application should always use gst_pad_try_connect and check * application should never fail, or use gst_pad_try_connect and
* the return code. * check the return code.
*
* This API will probably be moved out of the main gstreamer library.
*/ */
void void
gst_pad_connect (GstPad *srcpad, gst_pad_connect (GstPad *srcpad,
GstPad *sinkpad) GstPad *sinkpad)
{ {
if (!gst_pad_try_connect (srcpad, sinkpad)) if (!gst_pad_try_connect (srcpad, sinkpad))
{ g_critical ("couldn't connect %s:%s and %s:%s",
GString *buf; GST_DEBUG_PAD_NAME (srcpad),
GST_DEBUG_PAD_NAME (sinkpad));
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);
}
} }
/** /**