]> git.sesse.net Git - vlc/commitdiff
lua_http: use playlist.pause as it's now available.
authorRémi Duraffort <ivoire@videolan.org>
Thu, 8 Apr 2010 14:36:45 +0000 (16:36 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Thu, 8 Apr 2010 14:36:45 +0000 (16:36 +0200)
share/lua/http/requests/status.xml

index f4fc486bd6b1ba2743957ff86c7a39da952f0429..e50ef4b4ce2fa71265379478f965e40e4fea4cfe 100644 (file)
@@ -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