[vlc-commits] commit: luahttp: Update the position on the slider. Fix #1671 ( Rémi Duraffort )

git at videolan.org git at videolan.org
Wed Mar 31 22:39:34 CEST 2010


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Mar 31 22:37:20 2010 +0200| [58781daf1c1a065435c0883620e6f9fa34e7829b] | committer: Rémi Duraffort 

luahttp: Update the position on the slider. Fix #1671

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

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

diff --git a/share/lua/http/requests/status.xml b/share/lua/http/requests/status.xml
index 6523c04..f4fc486 100644
--- a/share/lua/http/requests/status.xml
+++ b/share/lua/http/requests/status.xml
@@ -108,8 +108,8 @@ local vout = input and vlc.object.find(input,'vout','child')
 ?>
 <root>
   <volume><?vlc print(vlc.volume.get()) ?></volume>
-  <length><?vlc if input then print(vlc.var.get(input,"length")) else print(0) end?></length>
-  <time><?vlc if input then print(vlc.var.get(input,"time")) else print(0) end?></time>
+  <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>
   <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>



More information about the vlc-commits mailing list