From c760bf1c6b9d087b03c4d43fee03a6ae69b79392 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 22 Jul 2015 03:36:36 +0200 Subject: improved error output for pad linking error --- src/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/utils.c b/src/utils.c index 0797c20..c49a691 100644 --- a/src/utils.c +++ b/src/utils.c @@ -89,8 +89,8 @@ static gboolean sydra_link_pads(GstElement* src, GstPad* src_pad, const char* sr if(GST_PAD_LINK_FAILED(ret)) { gchar* src_name = gst_element_get_name(src); gchar* sink_name = gst_element_get_name(sink); - log_printf(ERROR, "Error linking pad '%s' of '%s' with pad '%s' of '%s'", - src_pad_name, src_name, sink_pad_name, sink_name); + log_printf(ERROR, "Error linking pad '%s' of '%s' with pad '%s' of '%s': %s", + src_pad_name, src_name, sink_pad_name, sink_name, gst_pad_link_get_name(ret)); g_free(src_name); g_free(sink_name); return FALSE; -- cgit v1.2.3