From 318e8da25071a76a3d88944304ae91f6d25d7f43 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 15 Aug 2014 23:32:31 +0200 Subject: lua: wake up the core when setting OSD The OSD is marked as changed, but the core isn't notified and this doesn't immediately wakeup. (Possibly the OSD code should wakeup the core instead, but maybe that woudl be overkill.) Observed when using "mp.use_suspend = false" in the OSC, and pausing, and moving the mouse pointer out of the window. The last part of the fade remained visible for longer than intended. --- player/lua.c | 1 + 1 file changed, 1 insertion(+) diff --git a/player/lua.c b/player/lua.c index ce0de907a5..c9c0001347 100644 --- a/player/lua.c +++ b/player/lua.c @@ -873,6 +873,7 @@ static int script_set_osd_ass(lua_State *L) int res_y = luaL_checkinteger(L, 2); const char *text = luaL_checkstring(L, 3); osd_set_external(mpctx->osd, res_x, res_y, (char *)text); + mp_input_wakeup(mpctx->input); return 0; } -- cgit v1.2.3