summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2005-08-10 21:30:17 +0000
committerTim-Philipp Müller <tim@centricular.net>2005-08-10 21:30:17 +0000
commit7c118a9508fcf10a44f59e469811417cae0e3145 (patch)
tree0edf5da99da4cfbda5191a99f99778051ed5a185
parent0904ecdd27e6c4509f50603779bbd47230ea091b (diff)
downloadgstreamer-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--ChangeLog6
m---------common0
-rw-r--r--gst/gst.c7
3 files changed, 13 insertions, 0 deletions
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 <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
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);