diff options
author | wm4 <wm4@nowhere> | 2014-12-15 14:44:25 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-15 14:44:47 +0100 |
commit | 756adee999bbc24b79d02fea34f8512239de016c (patch) | |
tree | 9d8bf84a0bad38016e4c91a5960ffc4af329382d /player/client.h | |
parent | a40df83bae2a8e018ac9e27827012347f3105725 (diff) | |
download | mpv-756adee999bbc24b79d02fea34f8512239de016c.tar.bz2 mpv-756adee999bbc24b79d02fea34f8512239de016c.tar.xz |
client API: be more lenient about mpv_suspend/resume mismatches
Before this commit, this was defined to trigger undefined behavior. This
was nice because it required less code; but on the other hand, Lua as
well as IPC support had to check these things manually. Do it directly
in the API to avoid code duplication, and to make the API more robust.
(The total code size still grows, though...)
Since all of the failure cases were originally meant to ruin things
forever, there is no way to return error codes. So just print the
errors.
Diffstat (limited to 'player/client.h')
-rw-r--r-- | player/client.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/player/client.h b/player/client.h index 4e116b3bca..aeb2e886e7 100644 --- a/player/client.h +++ b/player/client.h @@ -32,6 +32,8 @@ struct mpv_handle *mp_new_client(struct mp_client_api *clients, const char *name struct mp_log *mp_client_get_log(struct mpv_handle *ctx); struct MPContext *mp_client_get_core(struct mpv_handle *ctx); +void mp_resume_all(struct mpv_handle *ctx); + // m_option.c void *node_get_alloc(struct mpv_node *node); |