mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:36:20 +00:00
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:
parent
d7d417af45
commit
ea51729ef6
1 changed files with 4 additions and 0 deletions
|
@ -94,7 +94,11 @@ gst_default_info_handler (gint category, gchar *file, gchar *function,
|
||||||
if (element && GST_IS_ELEMENT (element))
|
if (element && GST_IS_ELEMENT (element))
|
||||||
elementname = g_strdup_printf (" [%s]", GST_OBJECT_NAME (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);
|
fprintf(stderr,"INFO:%s%s %s\n",location,elementname,string);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (location != empty) g_free(location);
|
if (location != empty) g_free(location);
|
||||||
if (elementname != empty) g_free(elementname);
|
if (elementname != empty) g_free(elementname);
|
||||||
|
|
Loading…
Reference in a new issue