Lua extensions: VLC interface freezes when reading stream in input_changed()
In a Lua extension in input_changed: when attempting to use:
local s = vlc.stream("http://videolan.org")
s:read(65535)
the interface of the Lua extension and VLC itself freezes.
Steps to reproduce:
- put simpleinputchangedtest.lua in C:\Program Files\VideoLAN\VLC\lua\extensions or similar
- Open "A description" from the View menu
- Add two files to the playlist and play the first file.
- Now go to the next file (click the "Next" button in the player controls)
VLC freezes immediately. This is caused by the s:read(65535) line.