mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
gst-inspect: Disable colors when piped
This follows what git and systemd tools would do.
This commit is contained in:
parent
8f136e8d9f
commit
01ecc85983
1 changed files with 2 additions and 0 deletions
|
@ -2031,6 +2031,8 @@ main (int argc, char *argv[])
|
||||||
#ifdef G_OS_UNIX
|
#ifdef G_OS_UNIX
|
||||||
if (isatty (STDOUT_FILENO)) {
|
if (isatty (STDOUT_FILENO)) {
|
||||||
redirect_stdout ();
|
redirect_stdout ();
|
||||||
|
} else {
|
||||||
|
colored_output = FALSE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue