summaryrefslogtreecommitdiffstats
path: root/video/out/drm_common.c
diff options
context:
space:
mode:
authorCogentRedTester <cogent.redtester@outlook.com>2022-05-19 16:23:49 +0930
committerDudemanguy <random342@airmail.cc>2022-05-19 13:54:31 +0000
commitb4c73ed10590ac7b7186f887ab1e24eeb68b35ce (patch)
treea2a0844cc56f5c7adb368685b3f255e28354ace4 /video/out/drm_common.c
parentf20dbcd620ace15ff132d49e873adcb0d9527595 (diff)
downloadmpv-b4c73ed10590ac7b7186f887ab1e24eeb68b35ce.tar.bz2
mpv-b4c73ed10590ac7b7186f887ab1e24eeb68b35ce.tar.xz
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.
Diffstat (limited to 'video/out/drm_common.c')
0 files changed, 0 insertions, 0 deletions