From 3091394edca48b8876326cb1d67813450c20a332 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 18 Mar 2013 20:42:01 +0100 Subject: mp_msg: print MSGL_STATUS to stderr if stderr is redirected Of course, status output is still hidden when stderr is a tty which is not the foreground tty. --- core/mp_msg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/mp_msg.c b/core/mp_msg.c index 58862406fe..e06d53c0d9 100644 --- a/core/mp_msg.c +++ b/core/mp_msg.c @@ -111,8 +111,8 @@ int mp_msg_test(int mod, int lev) { #ifndef __MINGW32__ if (lev == MSGL_STATUS) { - // skip status line output if stderr is not in the fg process group - if (tcgetpgrp(2) != getpgrp()) + // skip status line output if stderr is a tty but in background + if (isatty(2) && tcgetpgrp(2) != getpgrp()) return false; } #endif -- cgit v1.2.3