summaryrefslogtreecommitdiffstats
path: root/sub/osd_dummy.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-12-23 11:17:01 +0100
committerwm4 <wm4@nowhere>2019-12-23 11:17:01 +0100
commit96932fe77c912f86d8fc51e073b4fd26a124a1fb (patch)
tree6d7df3eaf1fc0f443b7db392a4130c42fb7635b1 /sub/osd_dummy.c
parent346c651de397165462d66f5b5c0bcec5a9ad4ae4 (diff)
downloadmpv-96932fe77c912f86d8fc51e073b4fd26a124a1fb.tar.bz2
mpv-96932fe77c912f86d8fc51e073b4fd26a124a1fb.tar.xz
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.
Diffstat (limited to 'sub/osd_dummy.c')
0 files changed, 0 insertions, 0 deletions