aboutsummaryrefslogtreecommitdiffhomepage
path: root/player/lua.c
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2014-08-15 23:32:31 +0200
committerGravatar wm4 <wm4@nowhere>2014-08-15 23:32:31 +0200
commit318e8da25071a76a3d88944304ae91f6d25d7f43 (patch)
tree229bd86f0c63dd381716911824879b004a536b87 /player/lua.c
parent364e06261a2ffd39afea1d029d4dcc87ef1d6144 (diff)
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.
Diffstat (limited to 'player/lua.c')
-rw-r--r--player/lua.c1
1 files changed, 1 insertions, 0 deletions
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;
}