vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Sun Mar 3 19:33:21 2019 +0200| [e3fcf65ee26689f527151ed5a3c5ef9c722fe826] | committer: Rémi Denis-Courmont
lua/rc: remove sd toggle functionality > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e3fcf65ee26689f527151ed5a3c5ef9c722fe826 --- share/lua/intf/cli.lua | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/share/lua/intf/cli.lua b/share/lua/intf/cli.lua index bbc3047a15..43eaa77b03 100644 --- a/share/lua/intf/cli.lua +++ b/share/lua/intf/cli.lua @@ -289,23 +289,13 @@ function sd_remove(name,client,arg) end function services_discovery(name,client,arg) - if arg then - if vlc.sd.is_loaded(arg) then - vlc.sd.remove(arg) - client:append(arg.." disabled.") - else - vlc.sd.add(arg) - client:append(arg.." enabled.") - end - else - local sd = vlc.sd.get_services_names() - client:append("+----[ Services discovery ]") - for n,ln in pairs(sd) do - client:append("| "..n..": " .. ln) - end - client:append("+----[ End of services discovery ]") - client:append("Enabled services discovery sources appear in the playlist.") + local sd = vlc.sd.get_services_names() + client:append("+----[ Services discovery ]") + for n,ln in pairs(sd) do + client:append("| "..n..": " .. ln) end + client:append("+----[ End of services discovery ]") + client:append("Enabled services discovery sources appear in the playlist.") end function load_vlm(name, client, value) _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
