0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
mpv/player
wm4 96932fe77c lua: batch-update key bindings
Lua scripting implements key bindings by defining an input section with
all the bindings in it. Every add_key_binding() call ran a mpv command
to update this section. This caused a lot of spam at debug log levels.

Reduce the spam and more it efficient by batching updates into a single
mpv command when the script becomes inactive. This is pretty simple,
because there's already the concept of idle handlers.

This requires that the script actually goes to sleep, which might not
happen in various extremely bogus corner cases, such as polling the mpv
message queue with active waiting. Just don't do that.
2019-12-23 11:17:01 +01:00
..
javascript js: read_options: on_update: don't re-read the config file 2019-12-22 14:51:13 +02:00
lua lua: batch-update key bindings 2019-12-23 11:17:01 +01:00
audio.c command: shuffle some crap around 2019-11-25 00:26:36 +01:00
client.c client API: deprecate tick event 2019-12-22 14:37:28 +01:00
client.h client API: rewrite property observation (again) 2019-12-19 11:11:51 +01:00
command.c command: fix confusing displayed aspect-ratio 2019-12-22 02:32:50 +01:00
command.h player: change m_config to use new option handling mechanisms 2019-11-29 12:49:15 +01:00
configfiles.c player: Optionally validate st_mtime when restoring playback state 2019-11-20 15:11:33 +01:00
core.h player: avoid underrun wakeup loop 2019-12-16 01:15:43 +01:00
external_files.c external_files: add .lrc subtitle extension 2019-09-02 01:25:43 +03:00
external_files.h player: get rid of mpv_global.opts 2018-05-24 19:56:35 +02:00
javascript.c js: don't pre-filter log level argument in mp.enable_messages() 2019-11-19 18:13:39 +02:00
loadfile.c stream, demux: redo origin policy thing 2019-12-20 13:00:39 +01:00
lua.c console.lua: add this script 2019-12-08 02:46:44 +01:00
main.c player: add comment to clarify FFmpeg ABI handling 2019-12-13 13:22:46 +01:00
misc.c stream, demux: redo origin policy thing 2019-12-20 13:00:39 +01:00
osd.c player: format low cache duration with more decimals 2019-10-11 19:18:43 +02:00
playloop.c client API: rewrite property observation (again) 2019-12-19 11:11:51 +01:00
screenshot.c screenshot, vo_image: use global swscale/zimg parameters 2019-10-31 15:44:09 +01:00
screenshot.h screenshot, vo_image: use global swscale/zimg parameters 2019-10-31 15:44:09 +01:00
scripting.c console.lua: add this script 2019-12-08 02:46:44 +01:00
sub.c player: ensure backward playback state is propagated on track switching 2019-09-19 20:37:05 +02:00
video.c player: avoid underrun wakeup loop 2019-12-16 01:15:43 +01:00