]> git.sesse.net Git - vlc/blobdiff - share/lua/http/requests/status.xml
minor fix in playback state
[vlc] / share / lua / http / requests / status.xml
index ee6e2ae403b89c3616fca50b2fd14b93b431ba1c..944cf09e7d138a46ca98d8b8e3261cbc0b145f21 100644 (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>