mirror of
https://github.com/mpv-player/mpv
synced 2025-03-31 15:59:34 +00:00
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.
This commit is contained in:
parent
4276e9443d
commit
44993ba0fb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user