summaryrefslogtreecommitdiffstats
path: root/video/out/vo_libmpv.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo_libmpv.c')
-rw-r--r--video/out/vo_libmpv.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/video/out/vo_libmpv.c b/video/out/vo_libmpv.c
index 1df63a5197..b09c2c21a7 100644
--- a/video/out/vo_libmpv.c
+++ b/video/out/vo_libmpv.c
@@ -573,6 +573,13 @@ static void run_control_on_render_thread(void *p)
talloc_free(frame);
break;
}
+ case VOCTRL_PERFORMANCE_DATA: {
+ if (ctx->renderer->fns->perfdata) {
+ ctx->renderer->fns->perfdata(ctx->renderer, data);
+ ret = VO_TRUE;
+ }
+ break;
+ }
}
*(int *)args[3] = ret;
@@ -620,6 +627,13 @@ static int control(struct vo *vo, uint32_t request, void *data)
mp_dispatch_run(ctx->dispatch, run_control_on_render_thread, args);
return ret;
}
+ case VOCTRL_PERFORMANCE_DATA:
+ if (ctx->dispatch) {
+ int ret;
+ void *args[] = {ctx, (void *)(intptr_t)request, data, &ret};
+ mp_dispatch_run(ctx->dispatch, run_control_on_render_thread, args);
+ return ret;
+ }
}
int r = VO_NOTIMPL;