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 */
gchar *empty = "";
gchar *elementname = empty,*location = empty;
int pid = getpid();
- int cothread_id = 0; /*FIXME*/
+ 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);
gchar *empty = "";
gchar *elementname = empty,*location = empty;
int pid = getpid();
- int cothread_id = 0; /*FIXME*/
+ 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);
extern const gchar *_gst_category_colors[32];
+extern GStaticPrivate _gst_debug_cothread_index;
/**********************************************************************