History

add return value processing

ruil2 committed 12 years ago

Commit 66165a61 parent 128546b2 files · +12 −4Browse files

Showing the changes to codec/encoder/core/src/slice_multi_threading.cpp (1 of 2 files). Show all

Unified · Split

codec/encoder/core/src/slice_multi_threading.cpp+5−2
@@ -963,8 +963,11 @@ int32_t CreateSliceThreads (sWelsEncCtx* pCtx) { · 962 unmodified lines
963963 int32_t iIdx = 0;
964964
965965 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+
968971
969972 ++ iIdx;
970973 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t