diff options
author | wm4 <wm4@nowhere> | 2014-10-08 12:49:04 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-08 12:49:04 +0200 |
commit | 046ad8c5aef8e0b72b823bb4ac5f875db33dd1dd (patch) | |
tree | 5501e134ddb8ed59f2812e7a4e8f54ce873fe8b0 /common/msg.c | |
parent | 014547bdc2c148713e335b6468c5029bb88555b0 (diff) | |
download | mpv-046ad8c5aef8e0b72b823bb4ac5f875db33dd1dd.tar.bz2 mpv-046ad8c5aef8e0b72b823bb4ac5f875db33dd1dd.tar.xz |
msg: set an explicit overflow message
So client API users don't have to worry about this specifically.
Also document the overflow case. (Not sure if we really need to do
this; maybe it'd be better not to, since this just adds more noise
to the docs.)
Diffstat (limited to 'common/msg.c')
-rw-r--r-- | common/msg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/msg.c b/common/msg.c index 866cae5c9d..21fae360be 100644 --- a/common/msg.c +++ b/common/msg.c @@ -321,7 +321,7 @@ static void write_msg_to_buffers(struct mp_log *log, int lev, char *text) *entry = (struct mp_log_buffer_entry) { .prefix = "overflow", .level = MSGL_FATAL, - .text = "", + .text = "log message buffer overflow\n", }; } mp_ring_write(buffer->ring, (unsigned char *)&entry, sizeof(entry)); |