1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-03 05:31:34 +00:00
mpv/player/lua
CogentRedTester b4c73ed105 osc.lua: fix crash when calling osc-tracklist while idle
If the player is started with --idle  and the osc-tracklist script-message
is called then the tracks_osc table will be nil,
which caused the OSC to crash due to attempting to index a nil value.

This appears to be because the osc_tracklist variable is both
initialised and updated by (ultimately) the render() function, which
is not run when the player is idling.

Rather than mess with the existing OSC logic it's easier to either
add this single check, or alternatively to initialise the the tracks_osc
table somewhere before this.
2022-05-19 13:54:31 +00:00
..
assdraw.lua
auto_profiles.lua auto_profiles.lua: don't warn if profile-restore=default 2022-01-30 15:13:10 +02:00
console.lua console.lua: don't render a 2nd cursor on the OSC 2022-05-01 21:48:20 +10:00
defaults.lua lua: remove mp.suspend, resume and resume_all 2021-12-15 12:29:10 +01:00
options.lua options.lua: remove unused function 2022-04-08 19:20:49 +03:00
osc.lua osc.lua: fix crash when calling osc-tracklist while idle 2022-05-19 13:54:31 +00:00
stats.lua various: remove trailing whitespace 2022-05-14 14:51:34 +00:00
ytdl_hook.lua ytdl_hook.lua: consider any subprocess status != 0 as error 2022-03-03 15:01:40 +02:00