[vlc-commits] commit: Revert "Lua SD: let the user know we are working" (Pierre d' Herbemont )

git version control git at videolan.org
Fri Mar 5 11:06:29 CET 2010


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Fri Mar  5 01:27:07 2010 +0100| [15e7ff2ba809bf8b2999b254a36b209d69560ce9] | committer: Pierre d'Herbemont 

Revert "Lua SD: let the user know we are working"

This reverts commit d38329b4dbcc1901e2f3ac147e1dd0697a174a7e.

This is reverted because it is a hack.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=15e7ff2ba809bf8b2999b254a36b209d69560ce9
---

 share/lua/sd/fmc.lua     |    2 --
 share/lua/sd/freebox.lua |    2 --
 share/lua/sd/icecast.lua |    2 --
 3 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/share/lua/sd/fmc.lua b/share/lua/sd/fmc.lua
index 7be1c8e..830a022 100644
--- a/share/lua/sd/fmc.lua
+++ b/share/lua/sd/fmc.lua
@@ -26,7 +26,6 @@ function descriptor()
 end
 
 function main()
-    local loading = vlc.sd.add_item( {path="vlc://nop",title="Loading..."} )
     local tree = simplexml.parse_url("http://www.archive.org/download/freemusiccharts.songs/fmc.xml")
     for _, show_node in ipairs( tree.children ) do
         simplexml.add_name_maps( show_node )
@@ -53,5 +52,4 @@ function main()
         node:add_subitem( {title=show_node.children_map["date"][1].children[1] .. " MP3 Podcast",path=show_node.children_map["podcastmp3"][1].children[1]} )
         node:add_subitem( {title=show_node.children_map["date"][1].children[1] .. " OGG Podcast",path=show_node.children_map["podcastogg"][1].children[1]} )
     end
-    vlc.sd.remove_item( loading )
 end
diff --git a/share/lua/sd/freebox.lua b/share/lua/sd/freebox.lua
index 0ba209b..a908648 100644
--- a/share/lua/sd/freebox.lua
+++ b/share/lua/sd/freebox.lua
@@ -34,7 +34,6 @@ function main()
     if line ~= "#EXTM3U" then
         return nil
     end
-    local loading = vlc.sd.add_item( {path="vlc://nop",title="Loading..."} )
     line = fd:readline()
     local duration, artist, name
     local options={"deinterlace=1"}
@@ -53,5 +52,4 @@ function main()
         end
         line = fd:readline()
     end
-    vlc.sd.remove_item( loading )
 end
diff --git a/share/lua/sd/icecast.lua b/share/lua/sd/icecast.lua
index ad48743..2bfbfc2 100644
--- a/share/lua/sd/icecast.lua
+++ b/share/lua/sd/icecast.lua
@@ -26,7 +26,6 @@ function descriptor()
 end
 
 function main()
-    local loading = vlc.sd.add_item( {path="vlc://nop",title="Loading..."} )
     local tree = simplexml.parse_url("http://dir.xiph.org/yp.xml")
     for _, station in ipairs( tree.children ) do
         simplexml.add_name_maps( station )
@@ -37,5 +36,4 @@ function main()
                           meta={["Icecast"]={["Bitrate"]=station.children_map["bitrate"][1].children[1];
                                              ["Server type"]=station.children_map["server_type"][1].children[1]}}} )
     end
-    vlc.sd.remove_item( loading )
 end



More information about the vlc-commits mailing list