summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-03-09 06:05:50 +0100
committerKevin Mitchell <kevmitch@gmail.com>2018-03-15 00:00:04 -0700
commit4d9c6ab6b9b9c5436f5ee52f56aee304da4b20b1 (patch)
tree9e4514906a4747f05928d8a3296b0f887115a3dc /player
parenta7f3cf473707b19bff9ea80b227490c8b305b601 (diff)
downloadmpv-4d9c6ab6b9b9c5436f5ee52f56aee304da4b20b1.tar.bz2
mpv-4d9c6ab6b9b9c5436f5ee52f56aee304da4b20b1.tar.xz
client API: rename mpv_detach_destroy() to mpv_destroy()
Since this has clearer semantics now, the old name is just clunky and confusing.
Diffstat (limited to 'player')
-rw-r--r--player/client.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/player/client.c b/player/client.c
index d347033fe5..289508447b 100644
--- a/player/client.c
+++ b/player/client.c
@@ -468,11 +468,16 @@ static void mp_destroy_client(mpv_handle *ctx, bool terminate)
}
}
-void mpv_detach_destroy(mpv_handle *ctx)
+void mpv_destroy(mpv_handle *ctx)
{
mp_destroy_client(ctx, false);
}
+void mpv_detach_destroy(mpv_handle *ctx)
+{
+ mpv_destroy(ctx);
+}
+
void mpv_terminate_destroy(mpv_handle *ctx)
{
mp_destroy_client(ctx, true);