[vlc-devel] [PATCH] Fixed vlm show to display next launch for schedules with endless repeats

Patrick Ho patrickh at ymail.com
Wed Mar 9 04:55:26 CET 2016


Currently vlm show does not show the next launch of endlessly repeated schedules after the first launch
---
 src/input/vlmshell.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/vlmshell.c b/src/input/vlmshell.c
index d698639..2684cf3 100644
--- a/src/input/vlmshell.c
+++ b/src/input/vlmshell.c
@@ -1491,7 +1491,7 @@ static vlm_message_t *vlm_Show( vlm_t *vlm, vlm_media_sys_t *media,
             {
                 int j = 0;
                 while( s->i_date + j * s->i_period <= i_time &&
-                       s->i_repeat > j )
+                       ( s->i_repeat > j || s->i_repeat == -1 ) )
                 {
                     j++;
                 }
-- 
2.7.2.windows.1



More information about the vlc-devel mailing list