[vlc-commits] commit: lua_http: use playlist.pause as it's now available. ( Rémi Duraffort )

git at videolan.org git at videolan.org
Thu Apr 8 17:29:02 CEST 2010


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Apr  8 16:36:45 2010 +0200| [390f4e743640351563b6c6d4e4ef2fdc0d57b8e1] | committer: Rémi Duraffort 

lua_http: use playlist.pause as it's now available.

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

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

diff --git a/share/lua/http/requests/status.xml b/share/lua/http/requests/status.xml
index f4fc486..e50ef4b 100644
--- a/share/lua/http/requests/status.xml
+++ b/share/lua/http/requests/status.xml
@@ -44,7 +44,7 @@ end
 local status = vlc.playlist.status()
 
 if command == "in_play" then
-  ---[[
+  --[[
   vlc.msg.err( "<options>" )
   for a,b in ipairs(options) do
     vlc.msg.err(b)
@@ -57,8 +57,7 @@ elseif command == "in_enqueue" then
 elseif command == "pl_play" then
   vlc.playlist.goto(id)
 elseif command == "pl_pause" then
-  vlc.msg.err("FIXME: pl_pause implementation is ugly")
-  common.hotkey("key-play-pause") -- gruik
+  vlc.playlist.pause()
 elseif command == "pl_stop" then
   vlc.playlist.stop()
 elseif command == "pl_next" then



More information about the vlc-commits mailing list