minor fix in playback state

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
This commit is contained in:
Akash Mehrotra 2011-04-20 23:44:36 +05:30 committed by Jean-Baptiste Kempf
parent 173c6b32af
commit 02041d4817
1 changed files with 1 additions and 3 deletions

View File

@ -41,8 +41,6 @@ local function stripslashes(s)
return string.gsub(s,"\\(.)","%1")
end
local status = vlc.playlist.status()
if command == "in_play" then
--[[
vlc.msg.err( "<options>" )
@ -113,7 +111,7 @@ local vout = input and vlc.object.find(input,'vout','child')
<volume><?vlc print(vlc.volume.get()) ?></volume>
<length><?vlc if input then print(math.floor(vlc.var.get(input,"length"))) else print(0) end?></length>
<time><?vlc if input then print(math.floor(vlc.var.get(input,"time"))) else print(0) end?></time>
<state><?vlc print(status) ?></state>
<state><?vlc print(vlc.playlist.status()) ?></state>
<position><?vlc if input then print(vlc.var.get(input,"position")) else print(0) end?></position>
<fullscreen><?vlc if vout then vlc.var.get(vout,"fullscreen") else print(0) end?></fullscreen>
<random><?vlc print(vlc.var.get(playlist,"random")) ?></random>