From: Nicolas Dufresne Date: Wed, 19 Dec 2018 21:55:57 +0000 (-0500) Subject: gst-inspect: Disable colors when piped X-Git-Tag: 1.16.2~157 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=01ecc859836e8c5a946b0ea891060d3edea2a3d6;p=platform%2Fupstream%2Fgstreamer.git gst-inspect: Disable colors when piped This follows what git and systemd tools would do. --- diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index 1277bea..1921fe4 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -2031,6 +2031,8 @@ main (int argc, char *argv[]) #ifdef G_OS_UNIX if (isatty (STDOUT_FILENO)) { redirect_stdout (); + } else { + colored_output = FALSE; } #endif