1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 23:32:26 +00:00

terminal: fix printing of prefix

This was subtly change in 5cfb18. Revert the change.
This commit is contained in:
wm4 2014-04-23 20:37:15 +02:00
parent 8a74638dc7
commit ac1a21e488

View File

@ -273,10 +273,11 @@ static void print_msg_on_terminal(struct mp_log *log, int lev, char *text)
fprintf(stream, "[%" PRId64 "] ", mp_time_us());
if (prefix) {
if (root->module)
if (root->module) {
pretty_print_module(stream, prefix, root->color, lev);
else if (root->verbose)
} else {
fprintf(stream, "[%s] ", prefix);
}
}
}