Skip to content

not exiting when lua interface initialization fails

Currently with [ticket:4751] in case the port is taken and the interface cannot initialize, vlc is left without any interface just playing the playlist (which can be empty, does not matter).

Especially with case of lua rc/telnet interface as main it would be nice to get vlc to shutdown automatically if the interface does not "come up".

If messing with previous functionality is not wanted this could be activated with --die-without-interface or similar config item.

I'm not sure if this could be related but it's possible to get vlc continue operations after x window has been closed with the latest 1.2 (and failed lua rc/telnet interface):

% ./vlc -v -I luarc --lua-intf rc --lua-config "rc={host='localhost:1234'}" ~/Downloads/sintel.ogv

VLC media player 1.2.0-git Twoflower (revision 1.1.0-pre1-4359-g1d9c69bb)

[0xd5d300] main libvlc warning: cannot read /home/joonas/src/vlc/src/.libs/vlc/plugins/plugins-04081e-7e8.dat (No such file or directory)

[0xe35e80] [cli] lua interface: Listening on host "localhost:1234".

[0xe35e80] [cli] main interface error: socket bind error (Permission denied)

[0xe35e80] [cli] main interface error: socket bind error (Permission denied)

[0xe35e80] [cli] lua interface error: Error loading script /home/joonas/src/vlc/share/lua/intf/cli.luac: lua/intf/modules/host.lua:199: Cannot listen on localhost:1234

[0x7f5cc0005740] main input error: ES_OUT_RESET_PCR called

[0xe5b820] main audio output warning: PTS is out of range (-9961), dropping buffer

[0xe5b820] main audio output warning: PTS is out of range (-21928), dropping buffer

[0x14301a0] xcb_window window error: X server failure xdg-screensaver: Window 0x05200000 does not exist

Last line is the only reaction to closed playback window. Judging by even more verbose output the playback is stopped with a delay and vlc can only be shut down using CTRL-C.

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