зеркало из https://github.com/mozilla/cubeb.git
Reset thread id when a new stream is created, in OpenSL backend
This is not 100% correct, but prevents crashing on an assert in the very common case of opening multiple streams back to back with logging enabled.
This commit is contained in:
Родитель
72ded59b4d
Коммит
ce3645e65c
|
@ -1509,6 +1509,7 @@ opensl_stream_init(cubeb * ctx, cubeb_stream ** stream,
|
|||
cubeb_state_callback state_callback, void * user_ptr)
|
||||
{
|
||||
cubeb_stream * stm = nullptr;
|
||||
cubeb_async_log_reset_threads();
|
||||
|
||||
assert(ctx);
|
||||
if (input_device || output_device) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче