From 7c118a9508fcf10a44f59e469811417cae0e3145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 10 Aug 2005 21:30:17 +0000 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ common | 2 +- gst/gst.c | 7 +++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fd5f91489a..48d91b15cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-08-10 Tim-Philipp Müller + + * 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 * docs/libs/gstreamer-libs-docs.sgml: diff --git a/common b/common index 694de4dbf4..856fbbfa88 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 694de4dbf4827f372321f0634643a254d7edd986 +Subproject commit 856fbbfa88621ab67df141ead8d4d3df32c5c176 diff --git a/gst/gst.c b/gst/gst.c index c467016050..c92438c16b 100644 --- a/gst/gst.c +++ b/gst/gst.c @@ -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);