зеркало из https://github.com/mozilla/cubeb.git
Bump the stack size for WASAPI rendering threads.
In Gecko, webrtc.org code we call from the callback is using big arrays allocated on the stack, and we're running out of stack space. Bumping it by a factor of two should be enough.
This commit is contained in:
Родитель
99a5054785
Коммит
3f750db99d
|
@ -1853,7 +1853,7 @@ int wasapi_stream_start(cubeb_stream * stm)
|
|||
return CUBEB_ERROR;
|
||||
}
|
||||
|
||||
stm->thread = (HANDLE) _beginthreadex(NULL, 256 * 1024, wasapi_stream_render_loop, stm, STACK_SIZE_PARAM_IS_A_RESERVATION, NULL);
|
||||
stm->thread = (HANDLE) _beginthreadex(NULL, 512 * 1024, wasapi_stream_render_loop, stm, STACK_SIZE_PARAM_IS_A_RESERVATION, NULL);
|
||||
if (stm->thread == NULL) {
|
||||
LOG("could not create WASAPI render thread.\n");
|
||||
return CUBEB_ERROR;
|
||||
|
|
Загрузка…
Ссылка в новой задаче