summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRudolf Polzer <divverent@xonotic.org>2013-03-18 20:33:29 +0100
committerRudolf Polzer <divverent@xonotic.org>2013-03-18 20:33:29 +0100
commitb1ae33a3554f919dadc37f40a73e0a0f5b3d8203 (patch)
tree44ee830bb94555e479bc2752fe2b0288aca7d8e7 /core
parent3ef58d85bab853365689ea2b76b539f9edccd6f7 (diff)
downloadmpv-b1ae33a3554f919dadc37f40a73e0a0f5b3d8203.tar.bz2
mpv-b1ae33a3554f919dadc37f40a73e0a0f5b3d8203.tar.xz
mp_msg: fix status output disappearing when redirecting INPUT.
Instead, we now check stderr's destination against the foreground tty for deciding whether we want status output or not.
Diffstat (limited to 'core')
-rw-r--r--core/mp_msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/mp_msg.c b/core/mp_msg.c
index 85cbe9c1fa..58862406fe 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 we are not in the foreground process group
- if (tcgetpgrp(0) != getpgrp())
+ // skip status line output if stderr is not in the fg process group
+ if (tcgetpgrp(2) != getpgrp())
return false;
}
#endif