[vlc-commits] cli: remove deprecated vlc.sd.is_loaded() call when listing SDs

Pierre Ynard git at videolan.org
Tue Nov 29 03:47:56 CET 2016


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Nov 29 03:44:31 2016 +0100| [2b860fc41144a6c5c648b9d27898d85e990fb8be] | 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=2b860fc41144a6c5c648b9d27898d85e990fb8be
---

 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..d848d32 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("Enabled services discovery sources appear in the playlist.")
     end
 end
 



More information about the vlc-commits mailing list