path: root/player/client.h
diff options
authorwm4 <wm4@nowhere>2018-03-09 04:46:09 +0100
committerKevin Mitchell <>2018-03-15 00:00:04 -0700
commit410a1b49edfbbf7d528fd7dd06b73d06e2f9fce4 (patch)
tree0861a27aa393997ccf02fe4498beff564a1a538b /player/client.h
parent782fa455b54f9153abefb64e26b8a25925118fc9 (diff)
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.
Diffstat (limited to 'player/client.h')
1 files changed, 1 insertions, 2 deletions
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);