[vlc-commits] minor fix in playback state

Akash Mehrotra git at videolan.org
Thu Apr 21 01:10:19 CEST 2011


vlc | branch: master | Akash Mehrotra <mehrotra.akash at gmail.com> | Thu Apr 21 00:02:36 2011 +0530| [02041d481751be08e18aa345d7a930b1e89e9244] | committer: Jean-Baptiste Kempf

minor fix in playback state

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 share/lua/http/requests/status.xml |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/share/lua/http/requests/status.xml b/share/lua/http/requests/status.xml
index ee6e2ae..944cf09 100644
--- a/share/lua/http/requests/status.xml
+++ b/share/lua/http/requests/status.xml
@@ -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>



More information about the vlc-commits mailing list