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.
This commit is contained in:
Tim-Philipp Müller 2005-08-10 21:30:17 +00:00
parent 0904ecdd27
commit 7c118a9508
3 changed files with 14 additions and 1 deletions

View file

@ -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:

2
common

@ -1 +1 @@
Subproject commit 694de4dbf4827f372321f0634643a254d7edd986
Subproject commit 856fbbfa88621ab67df141ead8d4d3df32c5c176

View file

@ -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);