Showing the changes to codec/encoder/core/src/slice_multi_threading.cpp (1 of 5 files). Show all
Unified · Split
| @@ -968,15 +968,15 @@ int32_t CreateSliceThreads (sWelsEncCtx* pCtx) { · 967 unmodified lines | ||
| 968 | 968 | return 0; |
| 969 | 969 | } |
| 970 | 970 | |
| 971 | −int32_t FiredSliceThreads (SSliceThreadPrivateData* pPriData, WELS_EVENT* pEventsList, WELS_EVENT* pMasterEventsList, | |
| 972 | − SLayerBSInfo* pLbi, | |
| 971 | +int32_t FiredSliceThreads (sWelsEncCtx* pCtx, SSliceThreadPrivateData* pPriData, WELS_EVENT* pEventsList, | |
| 972 | + WELS_EVENT* pMasterEventsList, SLayerBSInfo* pLbi, | |
| 973 | 973 | const uint32_t uiNumThreads, SSliceCtx* pSliceCtx, const bool bIsDynamicSlicingMode) { |
| 974 | 974 | int32_t iEndMbIdx = 0; |
| 975 | 975 | int32_t iIdx = 0; |
| 976 | 976 | const int32_t kiEventCnt = uiNumThreads; |
| 977 | 977 | |
| 978 | 978 | if (pPriData == NULL || pLbi == NULL || kiEventCnt <= 0 || pEventsList == NULL) { |
| 979 | − WelsLog (NULL, WELS_LOG_ERROR, | |
| 979 | + WelsLog (pCtx, WELS_LOG_ERROR, | |
| 980 | 980 | "FiredSliceThreads(), fail due pPriData == %p || pLbi == %p || iEventCnt(%d) <= 0 || pEventsList == %p!!\n", |
| 981 | 981 | (void*)pPriData, (void*)pLbi, uiNumThreads, (void*)pEventsList); |
| 982 | 982 | return 1; |