From 31adc87bde5d7d671b9b52cd912875d037501a1c Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 15 Jan 2016 22:49:10 +0100 Subject: global: add client API pointer to library handle Makes the next commit simpler. It's probably a bad idea to add more fields to the global state, but on the other hand the client API state is pretty much per-instance anyway. It also will help with things like the proposed libmpv custom stream API. --- player/misc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'player/misc.c') diff --git a/player/misc.c b/player/misc.c index 58dd6af4f9..3729d7a42c 100644 --- a/player/misc.c +++ b/player/misc.c @@ -250,6 +250,7 @@ struct mpv_global *create_sub_global(struct MPContext *mpctx) *new = (struct mpv_global){ .log = mpctx->global->log, .opts = new_config->optstruct, + .client_api = mpctx->clients, }; return new; } -- cgit v1.2.3