1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 15:52:25 +00:00

msg: show how many messages were dropped

Although repl.lua will probably not use this.
This commit is contained in:
wm4 2019-11-22 01:10:27 +01:00
parent 65a531b8e4
commit 4a90da4e1d

View File

@ -692,7 +692,9 @@ struct mp_log_buffer_entry *mp_msg_log_buffer_read(struct mp_log_buffer *buffer)
*res = (struct mp_log_buffer_entry) {
.prefix = "overflow",
.level = MSGL_FATAL,
.text = "log message buffer overflow\n",
.text = talloc_asprintf(res,
"log message buffer overflow: %"PRId64" messages skipped\n",
buffer->dropped),
};
buffer->dropped = 0;
} else {