mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
gst/gst.c: Check whether GST_DEBUG_NO_COLOR environment variable is set and disable coloured debug output if that is ...
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 that is the case.
This commit is contained in:
parent
ba8a8319fd
commit
130c7ae0a6
2 changed files with 13 additions and 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 that is the case.
|
||||
|
||||
2005-08-10 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/base/gsttypefindhelper.c: (helper_find_peek),
|
||||
|
|
|
@ -346,6 +346,10 @@ gst_init_check_with_popt_table (int *argc, char **argv[],
|
|||
context = poptGetContext ("GStreamer", *argc, (const char **) *argv,
|
||||
options, 0);
|
||||
|
||||
/* check for GST_DEBUG_NO_COLOR environment variable */
|
||||
if (g_getenv ("GST_DEBUG_NO_COLOR") != NULL)
|
||||
gst_debug_set_colored (FALSE);
|
||||
|
||||
/* check for GST_DEBUG environment variable */
|
||||
gst_debug_env = g_getenv ("GST_DEBUG");
|
||||
if (gst_debug_env)
|
||||
|
@ -468,6 +472,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);
|
||||
|
|
Loading…
Reference in a new issue