From 410a1b49edfbbf7d528fd7dd06b73d06e2f9fce4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 9 Mar 2018 04:46:09 +0100 Subject: client API: cleanup mpv_handle termination This changes how mpv_terminate_destroy() and mpv_detach_destroy() behave. The doxygen in client.h tries to point out the differences. The goal is to make this more useful to the API user (making it behave like refcounting). This will be refined in follow up commits. Initialization is unfortunately closely tied to termination, so that changes as well. This also removes earlier hacks that make sure that some parts of FFmpeg initialization are run in the playback thread (instead of the user's thread). This does not matter with standard FFmpeg, and I have no reason to care about this anymore. --- player/client.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'player/client.h') diff --git a/player/client.h b/player/client.h index 118f6800f6..deec3c793b 100644 --- a/player/client.h +++ b/player/client.h @@ -18,9 +18,8 @@ struct mpv_global; #define MAX_CLIENT_NAME 64 void mp_clients_init(struct MPContext *mpctx); -void mp_client_enter_shutdown(struct MPContext *mpctx); void mp_clients_destroy(struct MPContext *mpctx); -int mp_clients_num(struct MPContext *mpctx); +void mp_shutdown_clients(struct MPContext *mpctx); bool mp_clients_all_initialized(struct MPContext *mpctx); bool mp_client_exists(struct MPContext *mpctx, const char *client_name); -- cgit v1.2.3