Skip to content

Commit

Permalink
client API: minor clarification when asynchronous commands send events
Browse files Browse the repository at this point in the history
  • Loading branch information
wm4 committed Feb 23, 2020
1 parent 0ec036b commit a9e6b9e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libmpv/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9e6b9e

Please sign in to comment.