[vlc-commits] luaHTTP: Force pl_loop and pl_repeat to be mutually exclusive.

Rob Jonson git at videolan.org
Sun Sep 18 17:35:46 CEST 2011


vlc | branch: master | Rob Jonson <rob at hobbyistsoftware.com> | Sun Sep 18 14:29:37 2011 +0100| [137ea4c07a91e7a5a25916e56b1878d9f112c0ad] | committer: Jean-Baptiste Kempf

luaHTTP: Force pl_loop and pl_repeat to be mutually exclusive.

At the moment, they can both be true which is meaningless.

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

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

 share/lua/intf/modules/httprequests.lua |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/share/lua/intf/modules/httprequests.lua b/share/lua/intf/modules/httprequests.lua
index fcd7a90..2054c8e 100644
--- a/share/lua/intf/modules/httprequests.lua
+++ b/share/lua/intf/modules/httprequests.lua
@@ -131,9 +131,15 @@ processcommands = function ()
 	elseif command == "pl_random" then
 	  vlc.playlist.random()
 	elseif command == "pl_loop" then
-	  vlc.playlist.loop()
+	--if loop is set true, then repeat needs to be set false
+	  if vlc.playlist.loop() then
+		vlc.playlist.repeat_("off")
+	  end
 	elseif command == "pl_repeat" then
-	  vlc.playlist.repeat_()
+	--if repeat is set true, then loop needs to be set false
+	  if vlc.playlist.repeat_() then
+		vlc.playlist.loop("off")
+	  end
 	elseif command == "pl_sd" then
 	  if vlc.sd.is_loaded(val) then
 		vlc.sd.remove(val)



More information about the vlc-commits mailing list