[vlc-commits] cli: remove deprecated vlc.sd.is_loaded() call when listing SDs
Pierre Ynard
git at videolan.org
Tue Nov 29 03:45:25 CET 2016
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Nov 29 03:44:31 2016 +0100| [055154175a788cf1130a75604650bb01b0ee9aa6] | committer: Pierre Ynard
cli: remove deprecated vlc.sd.is_loaded() call when listing SDs
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=055154175a788cf1130a75604650bb01b0ee9aa6
---
share/lua/intf/cli.lua | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/share/lua/intf/cli.lua b/share/lua/intf/cli.lua
index 90f23af..28bb928 100644
--- a/share/lua/intf/cli.lua
+++ b/share/lua/intf/cli.lua
@@ -290,15 +290,10 @@ function services_discovery(name,client,arg)
local sd = vlc.sd.get_services_names()
client:append("+----[ Services discovery ]")
for n,ln in pairs(sd) do
- local status
- if vlc.sd.is_loaded(n) then
- status = "enabled"
- else
- status = "disabled"
- end
- client:append("| "..n..": " .. ln .. " (" .. status .. ")")
+ client:append("| "..n..": " .. ln)
end
client:append("+----[ End of services discovery ]")
+ client:append("Check the playlist to view currently enabled services discovery modules.")
end
end
More information about the vlc-commits
mailing list