Commit 137ea4c0 authored by Rob Jonson's avatar Rob Jonson Committed by 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: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 39eddfc4
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment