diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2005-08-10 21:30:17 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2005-08-10 21:30:17 +0000 |
commit | 7c118a9508fcf10a44f59e469811417cae0e3145 (patch) | |
tree | 0edf5da99da4cfbda5191a99f99778051ed5a185 | |
parent | 0904ecdd27e6c4509f50603779bbd47230ea091b (diff) | |
download | gstreamer-7c118a9508fcf10a44f59e469811417cae0e3145.tar.gz |
gst/gst.c: Check whether GST_DEBUG_NO_COLOR environment variable is set and disable coloured debug output if so.
Original commit message from CVS:
* gst/gst.c: (gst_init_check_with_popt_table), (init_pre):
Check whether GST_DEBUG_NO_COLOR environment variable is
set and disable coloured debug output if so.
-rw-r--r-- | ChangeLog | 6 | ||||
m--------- | common | 0 | ||||
-rw-r--r-- | gst/gst.c | 7 |
3 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2005-08-10 Tim-Philipp Müller <tim at centricular dot net> + + * gst/gst.c: (gst_init_check_with_popt_table), (init_pre): + Check whether GST_DEBUG_NO_COLOR environment variable is + set and disable coloured debug output if so. + 2005-08-04 Benjamin Otte <otte@gnome.org> * docs/libs/gstreamer-libs-docs.sgml: diff --git a/common b/common -Subproject 694de4dbf4827f372321f0634643a254d7edd98 +Subproject 856fbbfa88621ab67df141ead8d4d3df32c5c17 @@ -346,6 +346,10 @@ gst_init_check_with_popt_table (int *argc, char **argv[], } if (popt_options == NULL) { + /* check for GST_DEBUG_NO_COLOR environment variable */ + if (g_getenv ("GST_DEBUG_NO_COLOR") != NULL) + gst_debug_set_colored (FALSE); + options = options_without; } else { options = options_with; @@ -469,6 +473,9 @@ init_pre (void) { const gchar *debug_list; + if (g_getenv ("GST_DEBUG_NO_COLOR") != NULL) + gst_debug_set_colored (FALSE); + debug_list = g_getenv ("GST_DEBUG"); if (debug_list) { parse_debug_list (debug_list); |