From a9e6b9ea36ddb430f8d7a45cf85df1dc01e5acca Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 24 Feb 2020 00:09:51 +0100 Subject: client API: minor clarification when asynchronous commands send events --- libmpv/client.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libmpv/client.h b/libmpv/client.h index 2700ad70d9..ce880e1012 100644 --- a/libmpv/client.h +++ b/libmpv/client.h @@ -1011,6 +1011,11 @@ int mpv_command_string(mpv_handle *ctx, const char *args); * error code set if running the command failed. For commands that * return data, the data is put into mpv_event_command.result. * + * The only case when you do not receive an event is when the function call + * itself fails. This happens only if parsing the command itself (or otherwise + * validating it) fails, i.e. the return code of the API call is not 0 or + * positive. + * * Safe to be called from mpv render API threads. * * @param reply_userdata the value mpv_event.reply_userdata of the reply will -- cgit v1.2.3