From ea51729ef668781bb372e2233339f3c3c66c0f55 Mon Sep 17 00:00:00 2001 From: Erik Walthinsen Date: Mon, 2 Apr 2001 14:08:43 +0000 Subject: [PATCH] added PID and cID to INFO lines when DEBUG is turned on Original commit message from CVS: added PID and cID to INFO lines when DEBUG is turned on --- gst/gstinfo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/gstinfo.c b/gst/gstinfo.c index 3e2994abc7..dfd4f8a1d9 100644 --- a/gst/gstinfo.c +++ b/gst/gstinfo.c @@ -94,7 +94,11 @@ gst_default_info_handler (gint category, gchar *file, gchar *function, if (element && GST_IS_ELEMENT (element)) elementname = g_strdup_printf (" [%s]", GST_OBJECT_NAME (element)); +#ifdef GST_DEBUG_ENABLED + fprintf(stderr,"INFO(%d:%d):%s%s %s\n",getpid(),cothread_getcurrent(),location,elementname,string); +#else fprintf(stderr,"INFO:%s%s %s\n",location,elementname,string); +#endif if (location != empty) g_free(location); if (elementname != empty) g_free(elementname);