Fixed repeat: loop is all, repeat is one.

This commit is contained in:
Jonathan Bernard 2016-04-04 06:18:35 -05:00
parent cb29844d9c
commit 48baed6d69

View File

@ -889,11 +889,11 @@ Configuration:
private def processRepeat(String option) { private def processRepeat(String option) {
switch(option) { switch(option) {
case 'null': case null:
def mode = vlcj.mediaListPlayer.mode def mode = vlcj.mediaListPlayer.mode
msg("Repeat mode is: " + msg("Repeat mode is: " +
mode == MediaListPlayerMode.REPEAT ? 'all.' : mode == MediaListPlayerMode.LOOP ? 'all.' :
(mode == MediaListPlayerMode.LOOP ? 'one.' : 'off.')) (mode == MediaListPlayerMode.REPEAT ? 'one.' : 'off.'))
return return
case 'off': case 'off':
@ -901,11 +901,11 @@ Configuration:
msg "Repeat set to off." msg "Repeat set to off."
break break
case 'all': case 'all':
vlcj.mediaListPlayer.mode = MediaListPlayerMode.REPEAT vlcj.mediaListPlayer.mode = MediaListPlayerMode.LOOP
msg "Repeat set to all." msg "Repeat set to all."
break break
case 'one': case 'one':
vlcj.mediaListPlayer.mode = MediaListPlayerMode.LOOP vlcj.mediaListPlayer.mode = MediaListPlayerMode.REPEAT
msg "Repeat set to one." msg "Repeat set to one."
break break
default: invalidOptionsErr('repeat') } } default: invalidOptionsErr('repeat') } }