From f30c5d09f4478ca40ceabc90d57fea68965778df Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 22 Nov 2016 14:47:50 +0100 Subject: client API: turn mpv_suspend() and mpv_resume() into stubs As threatened by the API changes document. This commit also removes or stubs equivalent calls in IPC and Lua scripting. The stubs are left to maintain ABI compatibility. The semantics of the API functions have been close enough to doing nothing that this probably won't even break existing API users. Probably. --- libmpv/client.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libmpv') diff --git a/libmpv/client.h b/libmpv/client.h index 28f86051a6..51f5c24d59 100644 --- a/libmpv/client.h +++ b/libmpv/client.h @@ -211,7 +211,7 @@ extern "C" { * relational operators (<, >, <=, >=). */ #define MPV_MAKE_VERSION(major, minor) (((major) << 16) | (minor) | 0UL) -#define MPV_CLIENT_API_VERSION MPV_MAKE_VERSION(1, 23) +#define MPV_CLIENT_API_VERSION MPV_MAKE_VERSION(1, 24) /** * Return the MPV_CLIENT_API_VERSION the mpv source has been compiled with. @@ -506,6 +506,9 @@ mpv_handle *mpv_create_client(mpv_handle *ctx, const char *name); int mpv_load_config_file(mpv_handle *ctx, const char *filename); /** + * This does nothing since mpv 0.23.0 (API version 1.24). Below is the + * description of the old behavior. + * * Stop the playback thread. This means the core will stop doing anything, and * only run and answer to client API requests. This is sometimes useful; for * example, no new frame will be queued to the video output, so doing requests -- cgit v1.2.3