diff options
Diffstat (limited to 'video/out/w32_common.c')
-rw-r--r-- | video/out/w32_common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/video/out/w32_common.c b/video/out/w32_common.c index 33b6cdfa63..bc2a700975 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -1202,3 +1202,9 @@ HWND vo_w32_hwnd(struct vo *vo) struct vo_w32_state *w32 = vo->w32; return w32->window; // immutable, so no synchronization needed } + +void vo_w32_run_on_thread(struct vo *vo, void (*cb)(void *ctx), void *ctx) +{ + struct vo_w32_state *w32 = vo->w32; + mp_dispatch_run(w32->dispatch, cb, ctx); +} |