summaryrefslogtreecommitdiffstats
path: root/video/out/vo_libmpv.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--video/out/vo_libmpv.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/video/out/vo_libmpv.c b/video/out/vo_libmpv.c
index 972588e..7974eed 100644
--- a/video/out/vo_libmpv.c
+++ b/video/out/vo_libmpv.c
@@ -27,6 +27,10 @@
#include "libmpv.h"
+#if HAVE_MACOS_COCOA_CB
+#include "osdep/mac/app_bridge.h"
+#endif
+
/*
* mpv_render_context is managed by the host application - the host application
* can access it any time, even if the VO is destroyed (or not created yet).
@@ -608,9 +612,6 @@ static int control(struct vo *vo, uint32_t request, void *data)
case VOCTRL_PAUSE:
vo->want_redraw = true;
return VO_TRUE;
- case VOCTRL_SET_EQUALIZER:
- vo->want_redraw = true;
- return VO_TRUE;
case VOCTRL_SET_PANSCAN:
mp_mutex_lock(&ctx->lock);
ctx->need_resize = true;
@@ -708,6 +709,13 @@ static void uninit(struct vo *vo)
static int preinit(struct vo *vo)
{
+#if HAVE_MACOS_COCOA_CB
+ cocoa_init_cocoa_cb();
+#else
+ if (vo->probing)
+ return -1;
+#endif
+
struct vo_priv *p = vo->priv;
struct mpv_render_context *ctx =