[vlc-commits] win32:thread: keep INFINITE condition wait intact

Steve Lhomme git at videolan.org
Thu May 26 13:44:17 CEST 2016


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Thu May 26 13:02:26 2016 +0200| [106205bed830900b6b381016bca3b842463e3c2e] | committer: Hugo Beauzée-Luyssen

win32:thread: keep INFINITE condition wait intact

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 src/win32/thread.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/win32/thread.c b/src/win32/thread.c
index 3e942c4..1dbdca6 100644
--- a/src/win32/thread.c
+++ b/src/win32/thread.c
@@ -272,7 +272,7 @@ static int vlc_cond_wait_delay(vlc_cond_t *wait, vlc_mutex_t *lock,
 {
     if (ms < 0)
         ms = 0;
-    if (ms > 0x7fffffff)
+    if (ms > 0x7fffffff && ms != INFINITE)
         ms = 0x7fffffff;
 
     DWORD delay = ms;



More information about the vlc-commits mailing list