Commit fe3ca6c0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

lua: do not check for should_die (always false here)

parent 33cc9972
...@@ -788,7 +788,7 @@ h:listen( config.hosts or config.host or "*console" ) ...@@ -788,7 +788,7 @@ h:listen( config.hosts or config.host or "*console" )
password = config.password or "admin" password = config.password or "admin"
--[[ The main loop ]] --[[ The main loop ]]
while not vlc.misc.should_die() do while true do
local write, read = h:accept_and_select() local write, read = h:accept_and_select()
for _, client in pairs(write) do for _, client in pairs(write) do
......
...@@ -30,11 +30,11 @@ dumpmeta.lua: dump a file's meta data on stdout/stderr ...@@ -30,11 +30,11 @@ dumpmeta.lua: dump a file's meta data on stdout/stderr
local item local item
repeat repeat
item = vlc.input.item() item = vlc.input.item()
until (item and item:is_preparsed()) or vlc.misc.should_die() until (item and item:is_preparsed())
-- preparsing doesn't always provide all the information we want (like duration) -- preparsing doesn't always provide all the information we want (like duration)
repeat repeat
until item:stats()["demux_read_bytes"] > 0 or vlc.misc.should_die() until item:stats()["demux_read_bytes"] > 0
vlc.msg.info("name: "..item:name()) vlc.msg.info("name: "..item:name())
vlc.msg.info("uri: "..vlc.strings.decode_uri(item:uri())) vlc.msg.info("uri: "..vlc.strings.decode_uri(item:uri()))
......
...@@ -38,7 +38,7 @@ Example use: ...@@ -38,7 +38,7 @@ Example use:
--or h:listen( { "localhost:4212", "*console" } ) --or h:listen( { "localhost:4212", "*console" } )
-- The main loop -- The main loop
while not vlc.misc.should_die() do while true do
-- accept new connections and select active clients -- accept new connections and select active clients
local write, read = h:accept_and_select() local write, read = h:accept_and_select()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment