summaryrefslogtreecommitdiffstats
path: root/libmpv
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-08 12:49:04 +0200
committerwm4 <wm4@nowhere>2014-10-08 12:49:04 +0200
commit046ad8c5aef8e0b72b823bb4ac5f875db33dd1dd (patch)
tree5501e134ddb8ed59f2812e7a4e8f54ce873fe8b0 /libmpv
parent014547bdc2c148713e335b6468c5029bb88555b0 (diff)
downloadmpv-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 'libmpv')
-rw-r--r--libmpv/client.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libmpv/client.h b/libmpv/client.h
index fe7efa66f8..c4df6a3fbf 100644
--- a/libmpv/client.h
+++ b/libmpv/client.h
@@ -1032,7 +1032,10 @@ typedef struct mpv_event_property {
typedef struct mpv_event_log_message {
/**
- * The module prefix, identifies the sender of the message.
+ * The module prefix, identifies the sender of the message. As a special
+ * case, if the message buffer overflows, this will be set to the string
+ * "overflow" (which doesn't appear as prefix otherwise), and the text
+ * field will contain an informative message.
*/
const char *prefix;
/**