From 0a7edf91e0b845210a849bd6cb472bde30f9f58b Mon Sep 17 00:00:00 2001 From: Erik Walthinsen Date: Fri, 27 Apr 2001 21:09:42 +0000 Subject: [PATCH] fixes to colorization Original commit message from CVS: fixes to colorization --- gst/gstinfo.c | 4 ++-- gst/gstinfo.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/gstinfo.c b/gst/gstinfo.c index 15263722c4..2dcff8638c 100644 --- a/gst/gstinfo.c +++ b/gst/gstinfo.c @@ -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; diff --git a/gst/gstinfo.h b/gst/gstinfo.h index 620d809dde..f3c4cc414e 100644 --- a/gst/gstinfo.h +++ b/gst/gstinfo.h @@ -310,7 +310,7 @@ enum { }; -extern const gchar *_gst_category_colors[GST_CAT_MAX_CATEGORY]; +extern const gchar *_gst_category_colors[32];