[vlc-commits] sout:cycle: the offset cannot be negative

Steve Lhomme git at videolan.org
Tue Sep 18 15:56:10 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun 13 15:03:30 2018 +0200| [977fb076c5e0b5f330044125b8b2dd6c06f8a7b8] | committer: Steve Lhomme

sout:cycle: the offset cannot be negative

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

 modules/stream_out/cycle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/stream_out/cycle.c b/modules/stream_out/cycle.c
index 876f2f4e65..0c7481339e 100644
--- a/modules/stream_out/cycle.c
+++ b/modules/stream_out/cycle.c
@@ -287,7 +287,7 @@ static int Open(vlc_object_t *obj)
         }
     }
 
-    if (sys->start == NULL || offset <= 0)
+    if (sys->start == NULL || offset == 0)
     {
         free(sys);
         msg_Err(stream, "unknown or invalid cycle specification");



More information about the vlc-commits mailing list