summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-15 13:36:39 +0100
committerwm4 <wm4@nowhere>2014-01-15 13:36:39 +0100
commit44993ba0fba1478d4d3482c1fd609039e76f3de3 (patch)
tree46a60fb092bdbc2c04b5f13310e2c6e2a5e6fe4c
parent4276e9443db53bca0306730cdd5a438c7146b738 (diff)
downloadmpv-44993ba0fba1478d4d3482c1fd609039e76f3de3.tar.bz2
mpv-44993ba0fba1478d4d3482c1fd609039e76f3de3.tar.xz
msg: terminal OSD uses stderr, not stdout
This is more correct. E.g. if you do "mpv file.mkv > /dev/null", stdout will not be a terminal, but stderr (used by terminal OSD and status line) is.
-rw-r--r--common/msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/msg.c b/common/msg.c
index ebb5051900..2692462dba 100644
--- a/common/msg.c
+++ b/common/msg.c
@@ -302,7 +302,7 @@ void mp_msg_update_msglevels(struct mpv_global *global)
root->module = opts->msg_module;
root->smode = opts->msg_identify;
root->color = opts->msg_color && isatty(fileno(stdout));
- root->termosd = !opts->slave_mode && isatty(fileno(stdout));
+ root->termosd = !opts->slave_mode && isatty(fileno(stderr));
talloc_free(root->msglevels);
root->msglevels = talloc_strdup(root, global->opts->msglevels);