[vlc-commits] lua: cosmetics

Pierre Ynard git at videolan.org
Sun Mar 18 04:36:38 CET 2012


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sun Mar 18 04:36:11 2012 +0100| [39ddd4de98d6933a1aefae879ef8d2382c238cf6] | committer: Pierre Ynard

lua: cosmetics

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

 share/lua/intf/modules/host.lua |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/share/lua/intf/modules/host.lua b/share/lua/intf/modules/host.lua
index 0d345b8..6395a95 100644
--- a/share/lua/intf/modules/host.lua
+++ b/share/lua/intf/modules/host.lua
@@ -114,11 +114,12 @@ function host()
         end
     end
 
-	local function write_console( client, data )
-		-- FIXME: this method shouldn't be needed. vlc.net.write should just work
-		io.write(data or client.buffer)
-		return string.len(data or client.buffer)
-	end
+    local function write_console( client, data )
+        -- FIXME: this method shouldn't be needed. vlc.net.write should
+        -- just work
+        io.write(data or client.buffer)
+        return string.len(data or client.buffer)
+    end
 
     local function read_console( client, len )
         -- Read stdin from a windows console (beware: select/poll doesn't work!)
@@ -164,18 +165,18 @@ function host()
         if t == client_type.net or t == client_type.telnet then
             w = send
             r = recv
-        else if t == client_type.stdio or t == client_type.fifo then
+        elseif t == client_type.stdio or t == client_type.fifo then
             if vlc.win and t == client_type.stdio then
                 vlc.win.console_init()
-				w = write_console
+                w = write_console
                 r = read_console
             else
-				w = write
+                w = write
                 r = read
             end
         else
             error("Unknown client type", t )
-        end end
+        end
 
         local client = { -- data
                          rfd = fd,



More information about the vlc-commits mailing list