mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
oops, too much revert
Original commit message from CVS: oops, too much revert
This commit is contained in:
parent
a022e03e98
commit
2ced1a341f
2 changed files with 9 additions and 6 deletions
|
@ -50,6 +50,8 @@ int dladdr(void *address, Dl_info *dl)
|
|||
|
||||
extern gchar *_gst_progname;
|
||||
|
||||
GStaticPrivate _gst_debug_cothread_index = G_STATIC_PRIVATE_INIT;
|
||||
|
||||
|
||||
/***** Categories and colorization *****/
|
||||
/* be careful with these, make them match the enum */
|
||||
|
@ -191,9 +193,9 @@ gst_default_debug_handler (gint category, gboolean incore,
|
|||
void *element, gchar *string)
|
||||
{
|
||||
gchar *empty = "";
|
||||
gchar *elementname = empty,* location = empty;
|
||||
int pid = getpid ();
|
||||
int cothread_id = 0; /*FIXME*/
|
||||
gchar *elementname = empty,*location = empty;
|
||||
int pid = getpid();
|
||||
int cothread_id = (int) g_static_private_get(&_gst_debug_cothread_index);
|
||||
#ifdef GST_DEBUG_COLOR
|
||||
int pid_color = pid%6 + 31;
|
||||
int cothread_color = (cothread_id < 0) ? 37 : (cothread_id%6 + 31);
|
||||
|
@ -303,9 +305,9 @@ gst_default_info_handler (gint category, gboolean incore,
|
|||
void *element, gchar *string)
|
||||
{
|
||||
gchar *empty = "";
|
||||
gchar *elementname = empty, *location = empty;
|
||||
int pid = getpid ();
|
||||
int cothread_id = 0; /*FIXME*/
|
||||
gchar *elementname = empty,*location = empty;
|
||||
int pid = getpid();
|
||||
int cothread_id = (int) g_static_private_get(&_gst_debug_cothread_index);
|
||||
#ifdef GST_DEBUG_COLOR
|
||||
int pid_color = pid%6 + 31;
|
||||
int cothread_color = (cothread_id < 0) ? 37 : (cothread_id%6 + 31);
|
||||
|
|
|
@ -112,6 +112,7 @@ enum {
|
|||
|
||||
extern const gchar *_gst_category_colors[32];
|
||||
|
||||
extern GStaticPrivate _gst_debug_cothread_index;
|
||||
|
||||
|
||||
/**********************************************************************
|
||||
|
|
Loading…
Reference in a new issue