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

Patrick Ho git at videolan.org
Wed Mar 9 13:00:47 CET 2016


vlc | branch: master | Patrick Ho <patrickh at ymail.com> | Tue Mar  8 19:55:26 2016 -0800| [b9341d8810ab97b398d11bc52c5181b3c83000c6] | committer: Jean-Baptiste Kempf

Fixed vlm show to display next launch for schedules with endless repeats

Currently vlm show does not show the next launch of endlessly repeated schedules after the first launch

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

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

 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++;
                 }



More information about the vlc-commits mailing list