diff options
author | wm4 <wm4@nowhere> | 2014-01-15 13:36:39 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-15 13:36:39 +0100 |
commit | 44993ba0fba1478d4d3482c1fd609039e76f3de3 (patch) | |
tree | 46a60fb092bdbc2c04b5f13310e2c6e2a5e6fe4c /common | |
parent | 4276e9443db53bca0306730cdd5a438c7146b738 (diff) | |
download | mpv-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.
Diffstat (limited to 'common')
-rw-r--r-- | common/msg.c | 2 |
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); |