summaryrefslogtreecommitdiffstats
path: root/common/msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/msg.c')
-rw-r--r--common/msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/msg.c b/common/msg.c
index 1b2960b047..6bde6d481d 100644
--- a/common/msg.c
+++ b/common/msg.c
@@ -437,8 +437,8 @@ void mp_msg_update_msglevels(struct mpv_global *global)
root->use_terminal = opts->use_terminal;
root->show_time = opts->msg_time;
if (root->use_terminal) {
- root->color = opts->msg_color && isatty(fileno(stdout));
- root->termosd = isatty(fileno(stderr));
+ root->color = opts->msg_color && isatty(STDOUT_FILENO);
+ root->termosd = isatty(STDERR_FILENO);
}
talloc_free(root->msglevels);