From 42592217c2f8719b0bbdd1f7500ad7b3eae23d10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Mon, 3 Mar 2014 21:32:23 +0200 Subject: [PATCH] Use the windows INFINITE define instead of manually casting -1 to uint32_t --- codec/common/WelsThreadLib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec/common/WelsThreadLib.cpp b/codec/common/WelsThreadLib.cpp index a78f907f..e645330b 100644 --- a/codec/common/WelsThreadLib.cpp +++ b/codec/common/WelsThreadLib.cpp @@ -123,7 +123,7 @@ WELS_THREAD_ERROR_CODE WelsMultipleEventsWaitSingleBlocking (uint32_t nCount, } WELS_THREAD_ERROR_CODE WelsMultipleEventsWaitAllBlocking (uint32_t nCount, WELS_EVENT* event_list) { - return WaitForMultipleObjects (nCount, event_list, TRUE, (uint32_t) - 1); + return WaitForMultipleObjects (nCount, event_list, TRUE, INFINITE); } WELS_THREAD_ERROR_CODE WelsEventDestroy (WELS_EVENT* event) {