All users of the function passed the value corresponding to "infinite", and the (currently unused) unix implementation of it only supported infinite wait as well.
Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 4 files). Show all
Unified · Split
| @@ -3271,8 +3271,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo * pFbi, const SSou · 3270 unmodified lines | ||
| 3271 | 3271 | int32_t iEventId = -1; |
| 3272 | 3272 | |
| 3273 | 3273 | lwait = WelsMultipleEventsWaitSingleBlocking (iNumThreadsScheduled, |
| 3274 | − &pCtx->pSliceThreading->pSliceCodedEvent[0], | |
| 3275 | − (uint32_t) -1); | |
| 3274 | + &pCtx->pSliceThreading->pSliceCodedEvent[0]); | |
| 3276 | 3275 | iEventId = (int32_t) (lwait - WELS_THREAD_ERROR_WAIT_OBJECT_0); |
| 3277 | 3276 | if (iEventId >= 0 && iEventId < iNumThreadsScheduled) { |
| 3278 | 3277 | if (iIndexOfSliceToBeCoded < iSliceCount) { |