mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
fixes to colorization
Original commit message from CVS: fixes to colorization
This commit is contained in:
parent
cb0068581c
commit
0a7edf91e0
2 changed files with 3 additions and 3 deletions
|
@ -68,7 +68,7 @@ static gchar *_gst_info_category_strings[] = {
|
|||
"NEGOTIATION",
|
||||
};
|
||||
|
||||
const gchar *_gst_category_colors[] = {
|
||||
const gchar *_gst_category_colors[32] = {
|
||||
[GST_CAT_GST_INIT] = "00;37",
|
||||
[GST_CAT_COTHREADS] = "00;32",
|
||||
[GST_CAT_COTHREAD_SWITCH] = "00;32",
|
||||
|
@ -101,7 +101,7 @@ const gchar *_gst_category_colors[] = {
|
|||
|
||||
/* colorization hash */
|
||||
inline gint _gst_debug_stringhash_color(gchar *file) {
|
||||
int filecolor;
|
||||
int filecolor = 0;
|
||||
while (file[0]) filecolor += *(char *)(file++);
|
||||
filecolor = (filecolor % 6) + 31;
|
||||
return filecolor;
|
||||
|
|
|
@ -310,7 +310,7 @@ enum {
|
|||
};
|
||||
|
||||
|
||||
extern const gchar *_gst_category_colors[GST_CAT_MAX_CATEGORY];
|
||||
extern const gchar *_gst_category_colors[32];
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue