0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-19 19:42:24 +02:00

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:
Kacper Michajłow 2024-05-05 16:38:02 +02:00
parent 414c47d1d8
commit f18ce7eca0

View File

@ -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)
{
return (root->force_stderr || lev == MSGL_STATUS || lev == MSGL_FATAL ||
lev == MSGL_ERR || lev == MSGL_WARN) ? STDERR_FILENO : STDOUT_FILENO;
return root->force_stderr ? STDERR_FILENO : STDOUT_FILENO;
}
// Reposition cursor and clear lines for outputting the status line. In certain