luarc rc and telnet port listening bad reporting
Using vlc 1.1.9 and starting vlc using interface "luarc", configuring lua "rc" or "telnet" to listen a localhost port using:
vlc -I lua --lua-intf telnet --lua-config "telnet={host='localhost:0'}"
or
vlc -I lua --lua-intf rc --lua-config "rc={host='localhost:0'}"
Both take a random port from the OS but report:
[0x923670] [rc] lua interface: Listening on host "localhost:0"
Also this reporting does not occur AFTER binding a listening socket to that port but happens BEFORE. Thus there is no "definitive" message about vlc being actually listening a valid port, but possible binding error messages arrive after the announcement:
[0xed0270] [rc] lua interface: Listening on host "localhost:1234". [0xed0270] [rc] main interface error: socket bind error (Permission denied) [0xed0270] [rc] main interface error: socket bind error (Permission denied)
It'd be better if "Listening on ..." message would be printed out AFTER the binding has been successfully done, with the actual port, not configured.