Showing the changes to codec/encoder/core/src/slice_multi_threading.cpp (1 of 2 files). Show all
Unified · Split
| @@ -963,8 +963,11 @@ int32_t CreateSliceThreads (sWelsEncCtx* pCtx) { · 962 unmodified lines | ||
| 963 | 963 | int32_t iIdx = 0; |
| 964 | 964 | |
| 965 | 965 | while (iIdx < kiThreadCount) { |
| 966 | − WelsThreadCreate (&pCtx->pSliceThreading->pThreadHandles[iIdx], CodingSliceThreadProc, | |
| 967 | − &pCtx->pSliceThreading->pThreadPEncCtx[iIdx], 0); | |
| 966 | + if (WelsThreadCreate (&pCtx->pSliceThreading->pThreadHandles[iIdx], CodingSliceThreadProc, | |
| 967 | + &pCtx->pSliceThreading->pThreadPEncCtx[iIdx], 0)) { | |
| 968 | + return 1; | |
| 969 | + } | |
| 970 | + | |
| 968 | 971 | |
| 969 | 972 | ++ iIdx; |
| 970 | 973 | } |