[vlc-commits] commit: lua_rc: print the item uri. ( Rémi Duraffort )

git at videolan.org git at videolan.org
Sat Apr 10 11:17:32 CEST 2010


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Apr  9 18:01:36 2010 +0200| [51a9225e9c38605f963523ec0e28036c38c652f5] | committer: Rémi Duraffort 

lua_rc: print the item uri.

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

 share/lua/intf/rc.lua |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/share/lua/intf/rc.lua b/share/lua/intf/rc.lua
index ca7cbed..7612c22 100644
--- a/share/lua/intf/rc.lua
+++ b/share/lua/intf/rc.lua
@@ -359,7 +359,10 @@ function stats(name,client)
 end
 
 function playlist_status(name,client)
-    client:append( "( new input: " .. "FIXME" .. " )" )
+    local item = vlc.input.item()
+    if(item ~= nil) then
+        client:append( "( new input: " .. vlc.strings.decode_uri(item:uri()) .. " )" )
+    end
     client:append( "( audio volume: " .. tostring(vlc.volume.get()) .. " )")
     client:append( "( state " .. vlc.playlist.status() .. " )")
 end



More information about the vlc-commits mailing list