mirror of https://github.com/mpv-player/mpv
msg: print all messages to one stream
This reverts commit 4939570e17
and makes
it more strict about the output stream. Status message is also on the
same stream now.
This commit is contained in:
parent
414c47d1d8
commit
f18ce7eca0
|
@ -194,8 +194,7 @@ int mp_msg_level(struct mp_log *log)
|
||||||
|
|
||||||
static inline int term_msg_fileno(struct mp_log_root *root, int lev)
|
static inline int term_msg_fileno(struct mp_log_root *root, int lev)
|
||||||
{
|
{
|
||||||
return (root->force_stderr || lev == MSGL_STATUS || lev == MSGL_FATAL ||
|
return root->force_stderr ? STDERR_FILENO : STDOUT_FILENO;
|
||||||
lev == MSGL_ERR || lev == MSGL_WARN) ? STDERR_FILENO : STDOUT_FILENO;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reposition cursor and clear lines for outputting the status line. In certain
|
// Reposition cursor and clear lines for outputting the status line. In certain
|
||||||
|
|
Loading…
Reference in New Issue