From f8a223b7aca08491e22438df0f1ea233d602907c Mon Sep 17 00:00:00 2001 From: Akemi Date: Sat, 25 Feb 2017 21:56:59 +0100 Subject: osx: initial Touch Bar support --- player/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'player') diff --git a/player/main.c b/player/main.c index 3f5e5abe59..42b56ea105 100644 --- a/player/main.c +++ b/player/main.c @@ -455,6 +455,11 @@ int mp_initialize(struct MPContext *mpctx, char **options) MP_STATS(mpctx, "start init"); +#if HAVE_COCOA + mpv_handle *ctx = mp_new_client(mpctx->clients, "osx"); + cocoa_set_mpv_handle(ctx); +#endif + #if HAVE_ENCODING if (opts->encode_opts->file && opts->encode_opts->file[0]) { mpctx->encode_lavc_ctx = encode_lavc_init(opts->encode_opts, -- cgit v1.2.3