diff options
author | wm4 <wm4@nowhere> | 2016-01-15 22:49:10 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-15 22:54:08 +0100 |
commit | 31adc87bde5d7d671b9b52cd912875d037501a1c (patch) | |
tree | 50294d4de8f6ff5524f238697bb3cd597cd710e8 /player/misc.c | |
parent | 2d4e8b623d5e6b540fba67cf46ebcfbf8c148ebf (diff) | |
download | mpv-31adc87bde5d7d671b9b52cd912875d037501a1c.tar.bz2 mpv-31adc87bde5d7d671b9b52cd912875d037501a1c.tar.xz |
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.
Diffstat (limited to 'player/misc.c')
-rw-r--r-- | player/misc.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |