0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00
mpv/player
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
..
javascript js: utils.get_user_path: make wrapper of expand-path 2022-02-04 12:53:16 +02:00
lua osc.lua: fix crash when calling osc-tracklist while idle 2022-05-19 13:54:31 +00:00
audio.c player: rearrange video sync opts/enums/defines 2022-04-11 18:14:22 +00:00
client.c various: fix typos 2022-04-25 09:07:18 -04:00
client.h scripting: remove race condition when toggling internal scripts 2020-03-26 23:59:44 +01:00
command.c vo_gpu_next: refactor subtitle rendering 2022-02-21 12:01:44 +01:00
command.h player: make deprecated track/chapter/metadata events internal 2021-12-15 12:29:10 +01:00
configfiles.c options: add watch-later-options 2021-07-21 13:19:28 +00:00
core.h player: rearrange video sync opts/enums/defines 2022-04-11 18:14:22 +00:00
external_files.c player: add cover-art-whitelist option 2022-04-21 16:42:27 +00:00
external_files.h player: add automatic loading of external cover art files 2020-09-28 00:12:52 +02:00
javascript.c js: utils.get_user_path: make wrapper of expand-path 2022-02-04 12:53:16 +02:00
loadfile.c player: make deprecated track/chapter/metadata events internal 2021-12-15 12:29:10 +01:00
lua.c lua: avoid rare memory leak in mp.join_path 2022-05-12 17:15:37 +03:00
main.c player: check for argv before printing help text 2022-05-16 21:10:09 +00:00
misc.c audio: refactor how data is passed to AO 2020-08-29 13:12:32 +02:00
osd.c various: fix typos 2022-04-25 09:07:18 -04:00
playloop.c player: set EOF when seeking to end with keep-open 2022-05-14 14:51:42 +00:00
screenshot.c screenshot: add --screenshot-sw option 2020-10-05 00:16:46 +02:00
screenshot.h player: make screenshot each-frame mode more accurate 2020-02-07 13:32:21 +01:00
scripting.c player/scripting: fix use-after-free when loading script folders 2021-04-08 23:47:35 +03:00
sub.c sub: align ytdl-hook secondary subs to the top 2021-08-11 18:15:35 +00:00
video.c player: rearrange video sync opts/enums/defines 2022-04-11 18:14:22 +00:00