]> git.sesse.net Git - vlc/blobdiff - share/lua/intf/rc.lua
lua_rc: print the item uri.
[vlc] / share / lua / intf / rc.lua
index ca7cbedbc4328364dc4c9186b7e9a01f1902b6ac..7612c22b37f91f6c537fdf4e869007ff16a1e60f 100644 (file)
@@ -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