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
This commit is contained in:
Erik Walthinsen 2001-04-02 14:08:43 +00:00
parent d7d417af45
commit ea51729ef6

View file

@ -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);