vlc | branch: master | Rob Jonson <[email protected]> | 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 <[email protected]> > 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) _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
