aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/out/vo_libmpv.c
diff options
context:
space:
mode:
authorGravatar Akemi <der.richter@gmx.de>2018-05-01 16:39:00 +0200
committerGravatar Jan Ekström <jeebjp@gmail.com>2018-06-12 01:51:01 +0300
commit20dffe0621b3e26674850ef0b46ba3e689931d87 (patch)
tree9ba5a45f6b89d2ec8c6f9f6fadb9b19a1b2564e7 /video/out/vo_libmpv.c
parentf66ee85fdf39a1f085f5564bee427524c749aaca (diff)
vo_libmpv: pass vo struct to the control callback
Diffstat (limited to 'video/out/vo_libmpv.c')
-rw-r--r--video/out/vo_libmpv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/vo_libmpv.c b/video/out/vo_libmpv.c
index 59d3b6883c..1df63a5197 100644
--- a/video/out/vo_libmpv.c
+++ b/video/out/vo_libmpv.c
@@ -626,7 +626,8 @@ static int control(struct vo *vo, uint32_t request, void *data)
pthread_mutex_lock(&ctx->control_lock);
if (ctx->control_cb) {
int events = 0;
- r = ctx->control_cb(ctx->control_cb_ctx, &events, request, data);
+ r = p->ctx->control_cb(vo, p->ctx->control_cb_ctx,
+ &events, request, data);
vo_event(vo, events);
}
pthread_mutex_unlock(&ctx->control_lock);