Skip to content

Lua script: vlc.misc does not work in lua scripts

I tried my VLC extension Lua script (http://forum.videolan.org/viewtopic.php?f=29&t=97791) in VLC 2. vlc.misc does not work there and so the countdown freezes on number 10 after pressing the Start button.

Lua warning in Messages window:

lua warning: Error while running script C:\vlc-2.1.0-git-20120216-0009-win32\vlc-2.1.0-git-20120216-0009\lua\extensions\subtitler.lua, function (null)(): ...2.1.0-git-20120216-0009\lua\extensions\subtitler.lua:154: attempt to index field 'misc' (a nil value)

Line 154:

vlc.misc.mwait(vlc.misc.mdate() + 500000)

The countdown in the script works in VLC 1.1.x

Thanks. I am on Windows XP SP2

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information