From 4d9c6ab6b9b9c5436f5ee52f56aee304da4b20b1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 9 Mar 2018 06:05:50 +0100 Subject: client API: rename mpv_detach_destroy() to mpv_destroy() Since this has clearer semantics now, the old name is just clunky and confusing. --- player/client.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'player/client.c') 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); -- cgit v1.2.3