summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-16 14:24:31 +0200
committerwm4 <wm4@nowhere>2016-09-16 14:39:47 +0200
commit15baf2789cd5c5e0413616df22f235478f40e65e (patch)
treec0a4709012a17dfad96f7e965e53aeb15a931adb /player
parent03fec24e192ea1b5c0cf957a5a64c0db9d33e67a (diff)
downloadmpv-15baf2789cd5c5e0413616df22f235478f40e65e.tar.bz2
mpv-15baf2789cd5c5e0413616df22f235478f40e65e.tar.xz
client API: declare mpv_suspend/mpv_resume deprecated
They're useless, and I have no idea what they're actually supposed to do (wrt. pending input processing changes). Also remove their implicit uses from the IPC handlers.
Diffstat (limited to 'player')
-rw-r--r--player/client.c2
-rw-r--r--player/lua.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/player/client.c b/player/client.c
index 807fab5df6..44732ed04f 100644
--- a/player/client.c
+++ b/player/client.c
@@ -321,6 +321,8 @@ void mpv_suspend(mpv_handle *ctx)
{
bool do_suspend = false;
+ MP_WARN(ctx, "warning: mpv_suspend() is deprecated.\n");
+
pthread_mutex_lock(&ctx->lock);
if (ctx->suspend_count == INT_MAX) {
MP_ERR(ctx, "suspend counter overflow");
diff --git a/player/lua.c b/player/lua.c
index b805a34ca8..964ba7c07a 100644
--- a/player/lua.c
+++ b/player/lua.c
@@ -450,6 +450,8 @@ static int script_find_config_file(lua_State *L)
static int script_suspend(lua_State *L)
{
struct script_ctx *ctx = get_ctx(L);
+ MP_WARN(ctx, "mp.suspend() (possibly triggered by mp.use_suspend) is "
+ "deprecated.\n");
mpv_suspend(ctx->client);
return 0;
}