summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2017-02-25 21:56:59 +0100
committerAkemi <der.richter@gmx.de>2017-03-26 20:26:18 +0200
commitf8a223b7aca08491e22438df0f1ea233d602907c (patch)
tree4547edcf3b4f0ed7b37bdd1cdf42221328964dff /player
parentafbd657bb8e955accf8022c96e867973c1fb0a41 (diff)
downloadmpv-f8a223b7aca08491e22438df0f1ea233d602907c.tar.bz2
mpv-f8a223b7aca08491e22438df0f1ea233d602907c.tar.xz
osx: initial Touch Bar support
Diffstat (limited to 'player')
-rw-r--r--player/main.c5
1 files changed, 5 insertions, 0 deletions
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,